-
Using microtime() PHP function you will know exactly how much time is needed for your PHP code to be executed. Follow the steps below to put the PHP code on your web page: The following code has to be put …
-
Definition and Usage The ereg() function searches a string specified by string for a string specified by pattern, returning true if the pattern is found, and false otherwise. The search is case sensitive in regard to alphabetical characters. The optional …
-
The Geo location API is used to get the geographical position of a user. Since this can compromise user privacy, the position is not available unless the user approves it. Use the getCurrentPosition() method to get the user’s position. The …
-
Following function is similar in nearly all respects to date() . It displays a date in a format specified in the first argument, except that the date string is calculated to be displayed in GMT. gmdate() function will have Format …
-
filter_var(variable, filter, options) variable : Required. Specifies the variable to filter filter : Optional. Specifies the ID of the filter to use. Default is FILTER_SANITIZE_STRING. Check the Complete PHP Filter Reference for possible filters options : Optional. Specifies an associative …
-
PHP has a great interface to regex with using the preg functions. These functions expect the regex patterns you feed them to be framed by one delimiter character on each side. For instance, if you choose “#” as a delimiter, …