Used to store variables of the current session.
The purpose of the function $_SESSION[] is to store data that you would like to preserve across page loads and to store variables of current session.
Used to store variables of the current session.
The purpose of the function $_SESSION[] is to store data that you would like to preserve across page loads and to store variables of current session.
The mysql_fetch_array() function returns a row from a recordset as an associative array and a numeric array.
If two or more columns of the result have the same field names,then the last column will take precedence.
Read/Write. Creates a new file. Returns FALSE and an error if file already exists
The default execution time set in set_time_limit() function is 30 secs.
This function restarts the timer counter form zero and when the number of seconds a script is allowed to run is reached, it returns a fatal error.
Nowdocs are to single-quoted strings what heredocs are to double-quoted strings. A nowdoc is specified similarly to a heredoc, but no parsing is done inside a nowdoc. The construct is ideal for embedding PHP code or other large blocks of text without the need for escaping. It shares some features in common with the SGML <![CDATA[ ]]> construct, in that it declares a block of text which is not for parsing.
A nowdoc is identified with the same <<< sequence used for heredocs, but the identifier which follows is enclosed in single quotes, e.g. <<<‘EOT’. All the rules for heredoc identifiers also apply to nowdoc identifiers, especially those regarding the appearance of the closing identifier.
Allows creating multiple lines of string without using quotations.
Heredoc is a robust way to create string in PHP with more lines but without using quotations.
We can do this by using JavaScript code linked to an event trigger of any form field and call the document.form.submit() function in JavaScript code.
PEAR is short for “PHP Extension and Application Repository” and a framework and repository for reusable PHP components. . Stig S. Bakken founded the PEAR project in 1999 to promote the re-use of code that performs common functions.The purpose of PEAR is to provide:
echo() and print() are language constructs in PHP, both are used to output strings. echo is marginally faster than print.
echo() can take multiple expressions whereas print cannot take multiple expressions.
Print return true or false based on success or failure whereas echo doesn’t return true or false.
A prompt box is a box which allows the user to enter input by providing a text box. Label and box will be provided to enter the text or number.