164k views
0 votes
Which of the following represent correct syntax to display first name from global variable user? Select the one correct answer.

a. {User.FirstName}
b. {!User.FirstName}
c. $User.FirstName
d. {!$User.FirstName}

1 Answer

3 votes

Answer:

Option D i.e., {!$User.FirstName} is the correct answer.

Step-by-step explanation:

The following option is correct because in the following statement, the user programmer will ask to display the first name by using the global variable then, in the PHP Programming Language the following is the correct way to display the first name of the user, which is inside the curly braces then, not operator and then, name of the variable through which it call.

User Gumzle
by
5.8k points