Tag Archives: foreach

Little PHP Tip: Array Iteration that Produces both Key and Value

Now while the foreach functionality is great in iterating through an array and returning the array’s values, sometimes one wishes to also capture the key against which a particular value is stored… Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | View Comments