|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-18 11:49 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 10:00:02 2026 UTC |
In a program ... This works: $url = str_replace('$id',$id,$url." "); But this doesnt: (It doesnt replace '$id' at all.) $url = str_replace('$id',$id,$url); (It should work.) $url is some string coming from a MySQL database, with '$id' in it (as text). This time at the end. If I assign the url manually it replaces fine, just not when it comes from a SQL datbase AND it's at the end of string. (So it's pretty hard to reproduce in just text.)