What are the Data Types in Javascript?
A data type is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing…
A data type is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing…
Var The var is a keyword that is used to declare a variable,We can declare a variable again even if it has been defined previously in the same scope. syntax…
In javascript, we have so many methods for accessing elements but, There are five important or common methods- document.getElementByid document.getElementByTageName document.getElementByClassName document.queryselector document.queryselectorall 1. Document.getElementByid The document method getElementByid() returns an element object representing the element…
Javascript comments explain the code design. They can also be used to prevent the execution of a section of code if necessary. Comments are ignored while the compiler executes the…
JavaScript is object-oriented programming language which is used by several websites for scripting the webpages. It is an interpreted, full-fledged programming language that enables dynamic interactivity on websites when applied…
json_Encode() Function The json_encode() function is an inbuilt function in PHP which is used to convert PHP array into JSON representation, this can return a JSON encoded string on success or false…
A string is a collection of characters. It offers various types of string operators and these operators have different functionalities such as string concatenation, compare values and to perform Boolean…
The array_push() and array_pop() methods in PHP is used to perform insertions as well as deletions from the object. array_push is used to add value in the array(it always add new value at the…
In php, we can get a random value from an array with this function “array_rand()”. this is an inbuilt function in php which is used to fetch a random number…
In php, array_unique() function is used to remove all the duplicate values from an array, if we have two same values then this function will take first one and removed…
we can convert JSON string to an array with the help of json decode() function. This functon accepts the JSON string as the first parameter and a few additional parameters…
You may ask, “How to create an empty array in PHP?” This is common in PHP codes, where you may want to store the values of a future computation into…
In PHP, we have six functions for sorting array: sort()= it sort an array in ascending order rsort()= it sort an array in descending order asort()= it sort an array…
we have soo many methods to delete an element from an array in php but the most common or mostly used methos are- unset() = This function takes an element…
we can create an array from php string with the help of str_split( ) function in PHP, str_split() is an inbuilt function in PHP and is used to convert the…