PHP control structure: Declare ()

I'm having a hard time understanding the PHP declare () control structure and where / how it will be used.

http://us.php.net/manual/en/control-structures.declare.php

I was hoping someone could explain it to me.

Thanks in advance.

+2


source to share


1 answer


Take a look at http://www.tuxradar.com/practicalphp/4/21/0



SUMMARY:

Simply put, a tick is a special event that occurs inside PHP once it has executed a certain number of statements. These statements are internal to PHP and freely correspond to statements in your script. You can control the number of statements it accepts to set a tick using declare (), and you can register functions to execute when a tick occurs using register_tick_function ().

0


source







All Articles