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

Recommended Answers

All 2 Replies

$_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.

Thanks pritaeas

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.