Jump to content

PHP function questions


Mudsaf

Recommended Posts

Hello, i'm wondering how to call php function with some variables sent on the way.

 

Example

function runScript($MyVar, $MyData) {echo $MyVar; //Should return 1echo $MyData; //Should return Data}$MyVar  = 1;$MyData = "Data";runScript($MyVar, $MyData);
Edited by Mudsaf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...