please click here for more wordpress cource
PHP has a vast collection of built-in functions that can be used to perform various tasks. Here are some commonly used PHP function references:
- echo() – Used to output one or more strings or variables to the screen.
- print() – Outputs a string.
- strlen() – Returns the length of a string.
- strtoupper() – Converts a string to uppercase.
- strtolower() – Converts a string to lowercase.
- substr() – Returns a portion of a string.
- explode() – Splits a string into an array.
- implode() – Joins elements of an array into a string.
- array() – Creates an array.
- count() – Counts the number of elements in an array.
- isset() – Checks if a variable is set and not null.
- empty() – Checks if a variable is empty.
- array_push() – Adds one or more elements to the end of an array.
- array_pop() – Removes the last element from an array.
- array_shift() – Removes the first element from an array.
- array_unshift() – Adds one or more elements to the beginning of an array.
- array_merge() – Merges two or more arrays.
- array_search() – Searches an array for a given value and returns the corresponding key if successful.
- sort() – Sorts an array in ascending order.
- rsort() – Sorts an array in descending order.
- array_reverse() – Reverses the order of the elements in an array.
- rand() – Generates a random number.
- time() – Returns the current Unix timestamp.
- date() – Formats a date and/or time.
- file_get_contents() – Reads the contents of a file into a string.
- file_put_contents() – Writes a string to a file.
- fopen() – Opens a file or URL.
- fclose() – Closes an open file pointer.
- fwrite() – Writes to an open file pointer.
- fread() – Reads from an open file pointer.