abs() function in PHP

abs() is an PHP’s inbuilt function. It returns a positive number. Its parameter accepts a numeric value that may be positive or negative but will return only a positive value. See example below:-

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

basename() is an inbuilt function in PHP. It is used to get the name of the file from a path. You can pass the path in its argument as a string and then it will return the name of the file with the extension. Basically, the basename() function splits path and return last data from … Read more

error_reporting() function: Turn off Error Reporting in PHP

error_reporting() is an inbuilt function of PHP (hypertext preprocessor) language. It is used to turn off the reporting of errors and warnings. Sometimes, we need to make use of it as not to get unnecessary errors. For example, when you define conditions in if(condition), if that does not produce true, then your else statement will … Read more