Display PHP Version

Display PHP Version

PHP provides different versions with different features. The latest PHP version is 7.4 as writing this post. Different versions of the PHP deployed in different platforms. The phpversion() function can be used to print currently running PHP version. phpversion() Function Syntax The phpversion() function syntax is like below. The EXTENSION parameter is optional and if … Read more

“mysql command not found” Error and Solution

"mysql command not found" Error and Solution

MySQL Database server uses different tools and commands. The mysql command is one of them and one of the most important and popular commands. the mysql command is used to connect local or remote MySQL server. The “mysql command not found” is an error when the mysql command can not be executed in the command … Read more

PHP str_replace() Function Tutorial

PHP str_replace() Function Tutorial

PHP provides the str_replace() function in order to replace characters or strings in a string. The str_replace() function can be also used to search in an array and replace string too. The replacement of the string occurs in every array element. The str_replace() function is case sensitive function where the uppercase and lowercase characters or … Read more

How To Find/Resolve Hostname From IP Address?

How To Find/Resolve Hostname From IP Address?

The IP address is used to address hosts by using numbers in a network. The hostname is used to address hosts by using canonical names. The hostname is more human-friendly and easy to remember than an IP address. The computer networks use the IP address to transmit packets. But the hostnames are used by the … Read more

PHP Associative Arrays Tutorial

PHP Associative Arrays Tutorial

PHP programming language provides arrays in order to store multiple items in a single variable. Arrays are very useful which makes the storage, management, and manipulation of series of data easy. The PHP provides associative arrays which is a type of array. Associative arrays are used to store items as values and keys. The associative … Read more

What Is The Difference Between exit(0) and exit(1)?

What Is The Difference Between exit(0) and exit(1)?

The exit() is a method or function used in C and C++ programming languages in order to exit from the current execution. The exit()generally used to end the current application and program by providing some state information to the caller. exit() Syntax The exit() has the following syntax where it can accept single parameter which … Read more

JavaScript undefined Property

JavaScript undefined Property

JavaScript undefined is a property used to express specified value is not defined. The undefined is a primitive value and property of the global object which means it can be accessed and used directly. The undefined property can be used in different cases in most of the checking if a variable is defined or undefined. … Read more