Is an asterisk (*) a reserved character or something?

Assume the following string that is the result of a read of a MySQL table:
[php]2111222333444[/php]

I then do this:

[php]$mface = explode("*", $row[cdata] );[/php]

The $mface array is totally empty. However if I substitute the * with something else (I’ve tried #), it loads fine

Works for me.

[php]
$string = “2111222333444”;
$parts = explode("*", $string);
print_r($parts);
[/php]

Output

Array
(
    [0] => 
    [1] => 2
    [2] => 111
    [3] => 222
    [4] => 333
    [5] => 444
    [6] => 
)
Sponsor our Newsletter | Privacy Policy | Terms of Service