Although I've read about it it still doesn't sink in when you will need to pass in a variable. I think I know how i just don't know for what reason. If someone could provide that information for me i would appreciate it. Also, is PHP variable passing more efficient than doing so in HTML? Thanks for your time and help.
Reliable
1
Junior Poster
Recommended Answers
Jump to PostIn what context are you referring?
Functions ?function myFunction($var1, $var2){ return ($var1 + $var2); }
In the example above I passed var1 and var2 into a function that adds them together and returns the result.
//call this function $total =myFunction(1,2);
I passed 'hard …
All 4 Replies
JRM
107
Practically a Master Poster
Reliable
1
Junior Poster
Tekkno
1
Junior Poster
Reliable
1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.