PHP using Declare ? What is a tick?

Posted by ArneRie on Stack Overflow See other posts from Stack Overflow or by ArneRie
Published on 2010-03-14T07:23:49Z Indexed on 2010/03/14 7:25 UTC
Read the original article Hit count: 198

Filed under:
|

Iam a little bit confused by php function declare.

What exactly is an single tick, i thought 1 tick = one line of code? But if i use:

function myfunc() {
        print "Tick";   
}

register_tick_function("myfunc");

declare(ticks=1) {
   echo 'foo!bar';
}

The script prints :

"Tick" 2 Times??

© Stack Overflow or respective owner

Related posts about php

Related posts about declare