1,105,254 Community Members

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

Member Avatar
IT_Techno
Junior Poster in Training
84 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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 ;)

Member Avatar
pritaeas
mod_pritaeas
11,285 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,830 [?]
Skill Endorsements: 154 [?]
Moderator
Featured
Sponsor
 
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.

Member Avatar
IT_Techno
Junior Poster in Training
84 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks pritaeas

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