Pages

Powered by Blogger.

Ads on article

Advertise in articles 1

advertising articles 2

Advertise under the article

Popular

miscellaneous function in php


PHP miscellaneous functions


PHP has many built-in functions that can be used for a variety of purposes. Here are a few examples of miscellaneous functions in PHP:

1) rand(): This function generates a random integer between two specified numbers.

2) time(): This function returns the current time as the number of seconds since January 1, 1970.

3) date(): This function formats a date and/or time according to a specified format.

4) strlen(): This function returns the length of a string.

5) strpos(): This function finds the position of the first occurrence of a substring in a string.

6)str_replace(): This function replaces all occurrences of a substring with another substring in a string.

7) explode(): This function splits a string into an array based on a specified delimiter.

8) implode(): This function joins an array into a string using a specified delimiter.

9)array_push(): This function adds one or more elements to the end of an array.

10) array_pop(): This function removes the last element from an array.

0 comments:

Post a Comment