- 1,233 categories
- 40,467 scripts
Updated: 01/26/2007
- PHP provides a number of array merging functions but not one that does precisely this. What this will do is that it will add new values found in the new array if they don''t exist and update them if they do, performing this recursively if a sub-element of the new array is itself an array.
- Categories
- Tags
- Platforms
- Licenses
- Author
- A collection of 19 tips on PHP functions on arrays. Clear answers are provided with tutorial exercises on searching keys and values, sorting arrays, merging two arrays, looping on array elements, expanding and truncating arrays. Special topics are:
...
- datLib contains Class Methods that help simplify common programming functions that PHP programmers use in their development process when building web based applications. These include calculating dates in different formats; server and user informatio...
- The script process recursively a template (given as a string) and a data structure (given as a tree of array of arrays).
Syntax is the same as phplib , but behaves better on loops or optional blocks embedded.
I developped it because I was tir...
- A PHP-based wrapper around the scriptaculous javascript library that makes it trivial to add drag-and-drop sorting to lists or any other HTML element. Helper functions to take the result of sorting and return it in a simple PHP array to enable easy ...
- This is a small PHP script that takes an associative array and a URL. The array is URL-encoded and then POSTed to the URL. If the request succeeds, the response, if any, is returned in a scalar array. Outputting this is the caller''s responsibil...