[ale] php weirdness

Jim Kinney jim.kinney at gmail.com
Mon Feb 23 12:24:17 EST 2009


Why does

echo str_replace(substr($row['foo'],0,3), '-', $row['foo']);

print out    abc-12345

when $row['foo'] contains abc12345? From what str_replace is SUPPOSED
to do it should print -12345 instead??

php5.

-- 
-- 
James P. Kinney III


More information about the Ale mailing list