We have 32 guests online
PHP Scripts arrow Free PHP Tutorials arrow Free PHP Tutorials 
 
Search
Results 21 - 30 of 30
Display #

21. Returning multiple values from a function
(PHP Tutorials and Examples/PHP)

Demonstrates how to return multiple values from a function using arrays and list().

16/02/2007 | 1148 Hit(s) | (0 vote) | Read more...

22. Demonstrating array_intersect() - finding common values across many arrays
(PHP Tutorials and Examples/PHP)

array_intersect() takes two or more arrays as arguments. The  function returns an array of "intersections", or identical values that are present in each of the other arrays. Note that keys are preserved.

 

16/02/2007 | 1243 Hit(s) | (1 vote) | Read more...

23. Exploring the FTP functions
(PHP Tutorials and Examples/PHP)

A simple script that demonstrates how the FTP functions can be used
16/02/2007 | 1411 Hit(s) | (0 vote) | Read more...

24. Hit Counter
(PHP Tutorials and Examples/PHP)

A simple hit counter using a file

16/02/2007 | 2365 Hit(s) | (7 votes) | Read more...

25. Converting URLs to anchor tags
(PHP Tutorials and Examples/PHP)

Using preg_replace to convert non-anchored URLs into HTML hyperlinks.

16/02/2007 | 1350 Hit(s) | (0 vote) | Read more...

26. RandomLib
(PHP Tutorials and Examples/PHP)

This class can be used to pick a random item from a collection.

It can add to a collection of items that can be values of any type: strings, numbers, objects, etc.. Each item may have a probability weight.

The class can pick one or more random items from the collection. When picking multiple items it may allow repetition of the same item or assure that all the picked items are unique.

It can also pick random items considering their probability weight, so those with greater weight are more likely to be picked.

16/02/2007 | 1183 Hit(s) | (0 vote) | Read more...

27. Check if a number is odd or even
(PHP Tutorials and Examples/PHP)

Using PHP's bitwise And operator (&), we can check to see if the 1-bit is on or off. If it's on, we have an odd number, otherwise, an even number. We can also accomplish the task by using the modulus operator.

16/02/2007 | 19194 Hit(s) | (19 votes) | Read more...

28. Mysql Open/Close Connection Scripts
(PHP Tutorials and Examples/PHP)

This script contains the easiest mysql connection ever.

16/02/2007 | 1642 Hit(s) | (3 votes) | Read more...

29. URL Validation
(PHP Tutorials and Examples/PHP)

Check that a URL or website address is valid using preg_match().

16/02/2007 | 2756 Hit(s) | (6 votes) | Read more...

30. Cycling through an array of names with foreach
(PHP Tutorials and Examples/PHP)

Using the foreach construct to cycle through an array.

16/02/2007 | 2048 Hit(s) | (3 votes) | Read more...

<< Start < Prev 1 2 3 Next > End >>
  
Top

Directory Stats

There are 923 listing and 46 categories in our website

Change Language