|
-
Jun 15th, 2009, 05:55 PM
#3
Thread Starter
Hyperactive Member
Re: Quick function question
 Originally Posted by SambaNeko
You will need to return it. Or, if desired, you could pass $value by reference by making this change:
Code:
function text_process(&$value){
If you did it that way, no return is necessary, and you'd only need this when calling it:
Code:
text_process($value);
(Your sample function call is different from your function definition here - I'm sticking with "text_process" for both...)
Oops sorry, still playing around with names to get some sort of logic into what functions are called.
So if I modify the variable I pass in the function list the changes are reflected in the calling script?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|