[pmwiki-devel] php question

Peter Bowers pbowers at pobox.com
Thu Jan 22 10:13:36 CST 2009


> -----Original Message-----
> Say I have an array $ar with string values (no key names).
> I want to check if there is a value 'xyz', and if there is, I want to
> have it replaced with  value 'abc'.

If you just want to do the replacement, str_replace() accepts an array as
its 3rd argument...

-Peter




More information about the pmwiki-devel mailing list