How to truncate text in PHP without third-party library
Tag: PHP
Learn how you can easily truncate and shorten a text in PHP
How to add leading zeros to numbers in PHP
Tag: PHP
Learn how you can add leading zeros to numbers in PHP
PHP add new line using the fwrite() function
Tag: PHP
Learn the best practice to add new line when using the fwrite() function
PHP single vs double quotes explained
Tag: PHP
Learn the differences between using single and double quotes in PHP
Solve PHP Warning: Creating default object from empty value
Tag: PHP
Learn how you can solve PHP warning message Creating default object from empty value
PHP variable length arguments explained
Tag: PHP
Learn how you can use PHP variable length arguments in your functions
Solve PHP Fatal Error: Unsupported operand types
Tag: PHP
Learn how you can Solve PHP Fatal Error: Unsupported operand types
Solve PHP trying to get property of non-object notice
Tag: PHP
Learn how you can Solve PHP Notice: Trying to get property of non-object
How to get the last day of a month in PHP
Tag: PHP
Learn how you can get the last day of a month in PHP (with code examples)
How to make PHP functions return an array
Tag: PHP
Learn how you can make PHP functions return an array with code examples
PHP remove first character from a string
Tag: PHP
Learn how you can remove the first character from a string in PHP
Solve PHP Warning: Module 'imagick' is already loaded
Tag: PHP
Learn how to solve the issue PHP Warning: Module 'imagick' is already loaded
Solve php is not recognized as an internal or external command
Tag: PHP
Learn how to solve the issue php is not recognized as an internal or external command
PHP how to check if session already exists
Tag: PHP
Learn how you can check if a session already exists or started in PHP
Check if an object has a property in PHP
Tag: PHP
Learn how to check if an object has a certain property in PHP
PHP check if URL contains a certain string
Tag: PHP
Learn how you can check if a URL address contains a certain string in PHP