Jump to content

[SOLVED] Those variable through function


Cardale

Recommended Posts

I want to through a variable through my function and have it come out the other side with updates using preg_replace.

 

So far it works if I were to echo it from inside the function, but if I want to put the variable back together with the updates so I can use it down the line further in other functions how can I do it?

 

function TEST($a, $b, $c){
$result = preg_replace($a, 3, $b[$c]);
return $result;
}

 

Any help appreciated.

Link to comment
https://forums.phpfreaks.com/topic/77809-solved-those-variable-through-function/
Share on other sites

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.