PHP provides an in-built function “array_filter” that removes all the key value pairs from the array that contain blank or null value. Syntax: array array_filter($arrayName) Example: The above code will print: Array( [0] => text [3] => -1 )
Tag Archives: php
Remove empty values from array in PHP without looping
Posted by eLearning Specialist
on January 29, 2013
6 comments
How to create a virtual host on wamp server
Posted by eLearning Specialist
on January 19, 2013
No comments
Follow the below simple steps to create virtual hosts and solve the problems related to it: STEP 1 Make your server listen to a new port in the httpd.conf file of wamp server Listen 82 etc. Mention the port number …
Hosting Applications on Wamp Server
Posted by eLearning Specialist
on January 19, 2013
No comments
Run single file on Wamp Once the wamp server is installed, a directory structure will be formed in the installed drive named wamp. To run your php file directly on wamp, what you need to do is place that file …