RE: removing chars from string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
$string = '12345678901';

$jayString = substr($string, 0, 9);
$kevinString = substr($string, 0, 8);

echo $jayString; // echos 123456789
echo '<br />'; // echos 12345678
echo $kevinString;

It turns out to "skin" a mule is to outsmart him. Because mules aren't
actually stubborn, they're just smarter than most of us.
[/snip]

Drat! Foiled again! My mind is absent. If you only knew....


My apologies for getting the math wrong...damn....I need a vacation.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux