abs() function in PHP

Date Published: 02/04/2021Published By: JaiSchool

abs() is an PHP’s inbuilt function. It returns a positive number. Its parameter accepts a numeric value that may be […]

0 CommentsRead More

How to call functions from an array (randomly or sequentially) in PHP

Date Published: 06/02/2021Published By: JaiSchool

Call all functions sequentially- Call only one random function

0 CommentsRead More

exit; Keyword in PHP

Date Published: 03/02/2021Published By: JaiSchool

This keyword (exit) stops the code execution after it. Statements after exit will not run.

0 CommentsRead More

rtrim() Function | Remove Whitespace From the End of String

Date Published: 02/02/2021Published By: JaiSchool

Example-

0 CommentsRead More

str_replace() Function | Replace any Text in String in PHP

Date Published: 02/02/2021Published By: JaiSchool

str_replace() function is used to replace text in a string. Its first parameter takes the text to find in a […]

0 CommentsRead More

nl2br() Function | Break Line in PHP

Date Published: 02/02/2021Published By: JaiSchool

nl2br() function takes a string in its parameter. It finds \n in given string and then it breaks line whereas […]

0 CommentsRead More

explode() | Split data in PHP

Date Published: 09/09/2020Published By: JaiSchool

If you want to split every letter then leave first parameter empty.

0 CommentsRead More

basename() function | Get file & folder name from path in PHP

Date Published: 22/04/2020Published By: JaiSchool

basename() is an inbuilt function in PHP. It is used to get the name of the file from a path. […]

0 CommentsRead More

[Code] Copy A Directory (Including Files and Folders Inside It) At Another Location in PHP

Date Published: 21/04/2020Published By: JaiSchool

Recursive program to copy a directory***

0 CommentsRead More

error_reporting() function: Turn off Error Reporting in PHP

Date Published: 16/04/2020Published By: JaiSchool

error_reporting() is an inbuilt function of PHP (hypertext preprocessor) language. It is used to turn off the reporting of errors […]

0 CommentsRead More