Search code examples
phpfunctionvariablesstr-replace

How can we put the str_replace () function into a variable?


str_replace("~","af53261f02cbb39d10c6bb0e53d180da5fee7d3c4c784f632e35abcf33b08fdc","$encode");

How can we put the output of the str_replace() function into a variable?


Solution

  • you can try this:

    $variable = str_replace("~","af53261f02cbb39d10c6bb0e53d180da5fee7d3c4c784f632e35abcf33b08fdc", "$encode");

    Was that your question?