Make Php Function Variable Global
Make Php Function Variable Global Webune Forums
Make, Php, Function, Variable, Global


Sat Apr 25, 2009 6:35 am - Make Php Function Variable Global
#1382
Make Php Function Variable Global
author: takemehome2
Leave Your Comments
name
comments
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
URL Link: ask
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed: ask
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
BBCODE: ask
| More
Sat Apr 25, 2009 6:37 am - Re: Make Php Function Variable Global
#1796
Web Hosting Support
yes it is possbile all you have to do is to make sure you use global inside the function for example

function foo{
global $string;
echo 'hello, this is the value of my variable string: '.$string;
}


hope that helps