Jump to content

[SOLVED] keeping value of a variable


thisisnuts123

Recommended Posts

hello guys

phpfunction ()
{

if ( $ a = $ b ) {
phpvar++;
}
......
}

 

every time this funtion is called.. phpvar will get reset to zero.. is there a way to keep it;s value? store it some where so when it;s called the 2nd time it becomes 2 then 3 etc etc

 

 

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/75885-solved-keeping-value-of-a-variable/
Share on other sites

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.