1.11M Members

Php codes : $_PROFILER->mark('afterRoute') : null;

 
0
 

hi

Iam new for php and trying to learn, i want to know what is this line of code mean :

$_PROFILER->mark('afterRoute') : null;

$_PROFILER ??

-> ?? what does it used for and what is it mean ?

mark()???

: ??

null??

and 'afterRoute' ???

thanks for all ;)

 
1
 

$_PROFILER is an object.

-> means you want to use a method or property of that object.

mark() is a method (function).

null means 'no value'.

'afterRoute' is a string, but it's meaning depends on the rest of the code.

Am not sure about the colon, I'd have to see the surrounding code. My guess is that it's part of a ternary operator.

 
0
 

Thanks pritaeas

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: