There are no shortage of ways to do this.
// Using explode() ...
echo array_pop(explode(" ",$full_name));
// Using split() ...
echo array_pop(split(" ",$full_name));
// Using stristr()
while($haystack = stristr($haystack," ")) {
$haystack = substr($haystack,1);
$last_wo
$pos=strpso($line," ");
$last=substr($line, $pos, strlen($line));
http://www.php.net/manual/en/function.substr.php
http://www.php.net/manual/en/function.strpos.php
http://www.php.net/manual/en/function.strlen.php
@+++
Le Vendredi 14 Décembre 2001 17:11, Andras Kende a écrit :
> I trying to con
2 matches
Mail list logo