Quantcast
Channel: stoimen's web log » Arrays
Browsing latest articles
Browse All 3 View Live

PHP: What is More Powerful Than list() – Perhaps extract()

list() in PHP Recently I wrote about list() in PHP which is indeed very powerful when assigning variable values from array elements. $a = array(10, array('here', 'are', 'some', 'tests')); list($count,...

View Article


Using PHP’s array_diff in Algorithm Development

array_diff can be really powerful. Once you’ve to find the different elements between two arrays you’ve to use array_diff. Here’s a case when you can use it while coding a simple algorithm. The Task...

View Article


Image may be NSFW.
Clik here to view.

Thing to Know About PHP Arrays

Consider the following case. We have an array with identical keys. $arr = array(1 => 10, 1 => 11); What happens when the interpreter reaches this line of code? This is not a syntax error and it...

View Article
Browsing latest articles
Browse All 3 View Live