Jump to content

str_replace clarification!!!!!


mikefrederick

Recommended Posts

PHP replacement type functions or search functions work on a principle of needle in a haystack

meaning your needle (must be integers or string mostly) is searched for in a haystack (most var types integers, string, arrays) 

 

You must do a foreach and replace each node of $x individually or some alternative method

 

Edit:

if that isn't clear

your needle is your original string, and the haystack is your query pool what is to be found.  I think I stated it backwards:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.