Jump to content

[SOLVED] php function won't work


Imad

Recommended Posts

Variables used inside functions are local to that function. This is so that you can write a function to do anything it needs, but it won't interact with the main program (functions call be called any number of times and they can be reused in other pieces of code.)

 

You need to pass values into functions as parameters in the function call.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.