Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Need help displaying variables through functions

$
0
0

Hey guys. I am trying to create a method that will return the  variable and whats assigned to the vairable. Not  jsut the string.

 

So for example, when I call my code account() below, I want it to return the variables and whats assigned to them, so that I can work with these variables.

function accounts($demo = TRUE) {
	if($demo) {
 $from_number = "55555555555";
 $sid = "******************";
$token = "*****************";
	} else {
	 $from_number = "5555555555";
 $sid = "*****************";
$token = "*****************";	
	}

}

accounts();

Viewing all articles
Browse latest Browse all 13200

Trending Articles