php - Is there a typo in this str_replace code? / Am I reading it correctly? -
Here is the line of code from a PHP file, in particular it is from zstore.php, which is part of a file Forms of "Zzele Store Builder" ToolsSet
set by Jezele.com gives to anyone like me, who have products for sale at Zaza and have massages that give data a good " Storefront "which I can set in my way to the Zayzle.com Rather than being confined by the CMS structure of C, they want to keep the monkey (Uhmi ... like users) from creating too much delusional. Therefore ... here code:
Two questions: I think the line of code is saying: Take a string of characters in the user input (dance divis) and specify it in the designated variable Then run the following function on that character string ("", "," << code> I think it's a bit If you find a comma, leave them alone, but I'm not sure. To see if I was inputting the following: Dance, Diva, which I think The script that I wanted was based on the commented text in the README.txt file: Such .. That's right, I'm right, and I'm pretty sure that the first half should work as I have said, now I have been brought to my second question: To review: The dance lamp produces results Both should work. / P> Thank you in advance for your help, I have a lot of HTML experience and computer experience but PHP is new to me. You can divide Firstly it replaces all the comas with an empty string, it removes all commas, then all the places are replaced with commas. There is no comet for "dance lamp", there is nothing in the first place, then it takes place in space and the result is for "dance, light" "Dance", Diva "This removes coma, you get" dance "and there is no place to change to the next place, so this is your result. $ keyword = str_replace ("", ",", str_replace (",", "", $ keyword));
$ keyword
= str_replace
, str_replace (",", "" this
, $ keyword));
// search term. Al Keywords separated by comma, which you can use to select products for your store
dance, not a lamp
$ keyword = str_replace ("", ",", str_replace ("," "", $ Keyword));
$ temp = str_replace (",", "", $ keyword); $ Keyword = str_replace ("", ",", $ temp);
Comments
Post a Comment