Menu
[URL=http://www.php.net]php.net
Can someone point me in the right direction?
I am looking for a script that will split a string into an array.
[code=php]<?php
$variable = ’12/34/2000′;
$variable = explode(‘/’,$variable,3);
echo $variable[0];//somthing like “12”
?>
For some reason, I get an error with [COLOR=firebrick]explode()[COLOR=firebrick]split()
[COLOR=firebrick]Notice: Undefined offset: 1 in …/script.php on line 148