Cardale Posted November 18, 2007 Share Posted November 18, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/77809-solved-those-variable-through-function/ Share on other sites More sharing options...
Cardale Posted November 18, 2007 Author Share Posted November 18, 2007 never mind think I got it. Quote Link to comment https://forums.phpfreaks.com/topic/77809-solved-those-variable-through-function/#findComment-393814 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.