PHP array_filter

In PHP sometimes we need to search an array from multidimensional array using a value.Here i want to show the uses of array_filter with call back for solve that types of problem.Suppose we have an multidimensional array like below $products = array ( 1 => array( ‘id’ => 125, ‘name’ => ‘The Breville One-Touch Tea 

Continue Reading…

xdebug recursion limit

xdebug is Debugger and Profiler Tool for PHP.Xdebug replaces PHP’s var_dump() function for displaying variables.It is an formatted displaying variables by which a developer can understand variables and arrays more clearly.By default xdebug has an limit,after this limit it shows …… Here i give an example how it looks array ‘one’ => string ‘a somewhat 

Continue Reading…

PHP xml to array

PHP xml to array

XML means Extensible Markup Language.In php programming sometimes we see some kinds of xml code.Mostly it sees on different types of api response.Most of the time we need make that type of xml to php array.Here i gave you a example of xml code and make the xml code to php array. Parse xml to 

Continue Reading…

kingpabel blog csv to php

Csv PHP (Csv to php)

Csv means comma separated value.Suppose we have a csv format file,we need to import that csv file in php format.It is needed for maximum project.In this article we learn how to import a csv format file to php array.For know about array follow this.For that at first create a html form to upload a csv 

Continue Reading…

Laravel disable xcache

Laravel disable xcache

Xcache is a caching system for php.Most of the shared hosting server using xcache.If you use laravel framework for develop a php project,you need to disable xcache,otherwise it will show a blank page,with error like net chuned error.If you permanently disable xcache it will problem for your another project where you already use xcache.Or in 

Continue Reading…