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

How To Add jQuery Google CDN?

How To Add jQuery Google CDN?

As a popular JavaScript library jQuery is provided by different companies via CDN. Google CDN is one of the most popular jQuery CDN which provides reliable access to the jQuery libraries for different versions. In this tutorial, we will examine how to add jQuery Google CDN. jQuery Types As a complext and popular JavaScript library … Read more

PHP exec() – Execute Commands and Programs

PHP exec() - Execute Commands and Programs

PHP provides the exec() method in order to execute or run commands, programs, or scripts. This exec() method can simply execute external commands in the operating system. For example, the whoami command of Linux can be executed for the current user, and returned username can be used in PHP applications. The exec() Method Syntax The … Read more

How To Get Current Date & Time In JavaScript?

How To Get Current Date & Time In JavaScript?

JavaScript provides the Date data in order to work with date and time information. The Date object can be used to get the current date and time. In this tutorial, we will learn how to get the current date and time in different formats. Get Current Date and Time JavaScript provides the Date() method which … Read more

How To Generate Random Numbers In C Programming Language?

How To Generate Random Numbers In C Programming Language?

Random numbers are numbers that are selected randomly. Selecting a random number can provide security, uniqueness, etc. C programming language provides the rand() function which returns pseudo-random numbers. rand() Function Syntax The rand() function syntax is like below. As we can see there is no parameter. The random number is returned as an integer. Before … Read more

“javac is not recognized as an internal or external command” Error and Solution

"javac is not recognized as an internal or external command" Error and Solution

Java is a popular programming language where the code is compiled with the tool named javac. This means if you want to compile your Java code and run it as a binary you should use the javac command or tool. As cross-platform language javac tools are provided for Linux, Windows, and MacOSX. “javac is not … Read more