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 ;)

2
Contributors
2
Replies
10
Views
3 Years
Discussion Span
Last Post by IT_Techno
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.

Edited by pritaeas

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.