Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to convert string to binary and binary to string using PHP

Hello Readers if you want to convert your string into binary using PHP then you can use the code syntax as below:- $value = unpack('H*', "This string is converting into binary"); echo base_convert($value[1], 16, 2); Output:- 010100110111010001100

How to implode multi-dimensional array keys using PHP v5.5

Hello Readers, If you want to implode the array keys from multi-dimensional array then now PHP 5.5 offers you much easier way to do this. Lets see the example as below:- Array ( [0] => Array ( [studenID] => 54874

How to splits an array into chunks of new arrays

Hello Readers , If we want to split one array into bunches of new arrays then their is a PHP function named "array_chunk()" that we can use. The array_chunk() function splits an array into chunks of new arrays. <!DOCTYPE html> <html> &

How to count the value of an array in PHP

Their is function called "array_count_values()" which will count all the values of an array. Lets suppose we have an array **array("A","Cat","Dog","A","Dog");** and we want to count the values of an array. Example : <!DOCTYPE html> <html

Display a random entry from a MySQL database in PHP

To display a random entry from a MySQL database we need to use a MySQL function rand(). To display the entry from MySQL database in PHP following script is used: <?php //connect to server with username and password, $connection = mysql_connect ("

How to get Clean URL in Drupal 7

Hello Friends, In Drupal generally URL setup like "http://www.abc.com/?=node/38". If you are looking to setup clean URL like "http://www.abc.com/node/38". Please follow the below steps for the same:: 1) Open administrative panel 2) After successfu

How to declare Array variables

Hello Reader's. Array is a datastructure used to storing multiple elements inside it. But the declaring way to array is different in all the technologies. For example if you want to declare array in JavaScript then you can use any one out of two way

How to suffle an array in PHP

Hello Readers , If we have the certain array in php and we want to suffle the values of an array then we have the function called shuffle(). This function randomize the vales in an array. Example : <?php $my_array = array("red","green","blue",

How to push more values in an array in PHP

Hello Readers , If we want to insert more records at the end of an array then their is function called array_push() that we can use. Example : If we have an existing array array("red","green"); and we want to insert two more values at the end of t

How to delete last element in an array

Hello Readers , If we have an array and we want to delete the last record in an array then their is a function called array_pop() . The array_pop() function deletes the last element of an array. Example : <?php $a=array("red","green","blue");

1 376 949
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: