Useful php commandline Linux User Must Know

0. php-v $ php -v PHP 5.5.22 (cli) (built: Apr 7 2015 10:29:09) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.5.0, Copyright (c)...

List all object's properties & methods in PHP

How to list all Object's properties and methods in PHP? I faced this issues when trying to build a micro framework in PHP (like fla...

[PHP] How to count the number of elements in an array?

To count the number of elements in an array, We can use count() function which is provided in PHP official library. You can also use sizeo...

Install Curl for PHP in Ubuntu

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers ...

Check if an element is exists in array

To check if an element is exists in array , we use  in_array function: bool in_array ( mixed $needle , array $haystack [, bool $strict =...