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

[ale] php weirdness



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