0

How many language construct are there in PHP language?

Just wanna know as echo is language construct then how many are there in PHP?

20th Sep 2020, 3:46 PM
Sick Gamer
Sick Gamer - avatar
1 Answer
+ 2
We have 14 Language Construct: Assert: Debug command to test a condition and do something if it is not true. echo: Outputting a value to stdout. print: Outputting a value to stdout. Exit: Optionally outputting a message and terminating the program. Die: This is an alias for the exit. Return: Terminates a function and returns control to the calling scope, or if called in the global scope, terminates the program. include: Includes a file and evaluates it. PHP will issue a warning if the file is not found or cannot be read. include_once: If you specify include_once then PHP will make sure that it includes the file only once. require: PHP will include a file and evaluate it. If the file is not found or cannot be read, then a fatal error will be generated. Require_once: If you specify require_once then PHP will make sure that it includes the file only once, but a fatal error will be generated instead of a warning. Eval: The argument is evaluated as PHP and affects the calling scope. Empty: Returns a Boolean value depending on whether the variable is empty or not. Empty variables include null variables, empty strings, arrays with no elements, numeric values of 0, a string value of 0, and Boolean values of false. isset: Returns true if the variable has been set and false otherwise. unset Clears a variable. list: Assigns multiple variables at one time from an array.
20th Sep 2020, 5:02 PM
Benjamin Franck Mukadi
Benjamin Franck Mukadi - avatar