I need urgent help with this, i have a line for example: 28383 192.2.2.2 1919191991 i want to break it up into 3 pieces so i could do $one = $match[1]; 28383 $two = $match[2]; 192.2.2.2 $three = $match[3]; 1919191991 i have tried many functions such as preg_split etc but i havent managed to get it right i just get an array like which is just an example i made but i dont want a result like that Can anyone post me a php code for this please thanks in advance.
$piece = explode(" ","28383 192.2.2.2 1919191991"); echo $piece[0]; echo $piece[1]; echo $piece[2]; PHP:
Thank you so much agent smith i cant belive i didnt think of it, must have been from not sleeping lol thanks again and rep added.
explode ! http://www.php.net/explode http://www.w3schools.com/PHP/func_string_explode.asp http://www.tizag.com/phpT/php-string-explode.php http://www.phpexplode.com/ myphpsource.blogspot.com/2008/08/php-string-explode.html