Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
In this simple function you send two arrays and it gives you an array with the operation A-B, elements on A that are not included on B.
|
|
This is a really simple function that allows one to display array data in a more readable way than with the standard print_r function
|
|
Function for sorting associative arrays by one or more keys.
Similar to "ORDER BY" in an SQL query.
|
|
similar to <b>print_r()</b>, beside highlighting and syntax - that allows you simply copy and paste printed array into your php code.
|
|
an enhanced version of array_merge - only adds on unique elements. Only works for simple (i.e. not associative) arrays
|
|
with the function array filter one gets the value of any array as input and with the help of a callback for more functional editing and gets back a modified array.
|
|
this function return array B
from array A by N interval Since i element
|
|
uses some html to beautify the output of the print_r function for arrays
|
|
This is a recursive function group that takes an array name and a valuename for that array and turns it into string that can be handed to eval()
|
|
Find the dimensions of every array.
Returns an integer representing the dimensions of the given array.
|
|
With this function you can set up an array of defaults that should always be set, and then add those defaults to another array.
his
|
|
Works on a like idea as array_merge(), but instead of concatenating arrays, it takes two related indexed arrays and creates one associative array.
|
|
Description:
array array_rm_dupes(array array, [boolean is_sorted])
array_rm_dupes() removes duplicate values from an array. It takes input array and returns a new array without duplicate values. array_rm_dupes() sorts the input array in case if is_sorted flag is "false" (default). Two elements are considered equal if and only if (string) $elem1 === (string) $elem2
NOTE THAT UNLIKE THE STANDARD array_unique() FUNCTION KEYS ARE PRESERVED!
|
|
array_unique
|
|
Runs through an array, assigns variables based on key name. Ability to append or prepend text to newly created variables.
Useful for adapting current applications that depend on register_globals to work without it.
|
|
This function will return an array "compressed", meaning that it
will change its numeric keys in order to make it a gapless list. For Example, when the input is an array having 2, 3, 7, and 197 as keys, those keys will be respectively changed to 2, 3, 4 and 5.
|
|
it first browse through the array and than print it out also in an array function.very useful when one is working with MYSQL
|
|
Easily set up weighted distributions, useful for ad serving, load balancing, scheduling etc.
|
|
Dumps out an array suitable for re-creating using eval()
|
|
Remoeves empty values of array...
|
|
Duplicates the functionality of PHP 4's array_rand function in PHP 3. Handy for people who have not yet been able to convince their sysadmins to upgrade to PHP 4, or for those who need a starting point to create a function similar to array_rand.
|
|
This code will take an array and form another array containing unique values. This can then be shuffled with the randomize array routine.
|
|
This takes a full name and converts it into an array. It drops the middle initial, if present, to render the first and last name.
|
|
Use this simple functino to duplicate the array_diff() or array_diff_assoc() functionality in PHP with arrays of your own objects. This should, in theory, work with any data type. serialize() could maybe even be used to make this obsolete, but who knows...
|
|
This may save someone 5 minutes. A little function that generates an array of unique random integers.
|
|
This function will randomize an array (by Richard Lynch)
|
|
Removes Empty Values Of Array :)
|
|
This is a function that reverses an array. For users that only have PHP 3.0 available.
|
|
In this simple function you send two arrays and a number x
if x is 1 the function will return A+B ( reunion )
and if x it is not 1 will return A%B ( crossing )
|
|
esay
- isert/add elements to any position of your array(s)
- delete elements from your array(s)
- move elements within your array(s)
- replace elements from your array(s)
... the array, 'dynamically' grows or shrinks to whatever we tweak it
|
|
This code will allow you to use two-dimensional arrays with forms in PHP 3
|
|
This works because im using it. Took me 3 hours to figure out but its done. Enjoy.
|