Tag archives for PHP
How to use CURL with Proxy
This post will be demonstrating how to use curl with proxy in PHP and Linux command line. What is additional parameter we need to pass while using curl via proxy.…
Installing WAMP Server in Windows 7 & 8
This article is going to step by step set-up and Configure WAMP Server in Windows 7 & 8 machine. Perquisites:- FOR WAMP 32bit :- Microsoft Visual C++ 2010 SP1…
How to Extract file extension in PHP
How to Extract a file extension in PHP In programming practices we usually use different code to achieve something. But we always find what is the best way to do…
$this vs self in PHP
$this refers to the current object of the class and self refers to the current class itself.$this can not be used inside static function whereas self can be used inside…
Merge array recursively in PHP
If you want merge array recursively in php then you can use array_merge_recursive function. It will merge all the array elements having same string keys and it returns the resulting…
Comma as a concatenation operator in PHP
In php we can output strings in different ways as we can use echo or print to display output text. Difference between echo and print: echo and print are not…
New features in PHP 5.6
Here is list of New features in PHP 1) Variadic functions via ...2) Argument unpacking via ...3) Changes in File uploads4) Importing namespace functions5) Exponentiation Operator in PHP (**) 1)…
Getting Started with FuelPHP
Getting Started with FuelPHP FuelPHP is a simple, flexible, community driven PHP 5 web framework. It was born out of the frustrations people have with the current available frameworks and…
Count matching occurrences in php array
You can Count matching occurrences in php array using php array function array_count_values() Syntax: array array_count_values ( array $array ) array_count_values() returns an array using the values of array as keys…
Validate URL in PHP
You can validate URL in PHP using regular expression or using validate filters Validate URL in PHP using regular expression: Example:- <?php // Write you regular expression pattern to match…