Needcodefor - needcodefor.com - Need code for ...

Latest News:

Infinite loops 6 Jul 2012 | 06:15 pm

We all know what a loop is: a programming language statement that allows us to repeat the execution of a piece of code until a certain ending condition is met. If the ending condition is never met or ...

Infinite loops 6 Jul 2012 | 06:15 pm

We all know what a loop is: a programming language statement that allows us to repeat the execution of a piece of code until a certain ending condition is met. If the ending condition is never met or ...

Swapping two variables in PHP 17 May 2011 | 12:34 am

In my last post at some point in the code I had to do a variable swap (to assign the value of the second variable to the first and vice-versa). To do this I used a third temporary variable to hold the...

Swapping two variables in PHP 16 May 2011 | 08:34 pm

In my last post at some point in the code I had to do a variable swap (to assign the value of the second variable to the first and vice-versa). To do this I used a third temporary variable to hold the...

PHP function to generate all permutations 11 May 2011 | 12:09 am

To generate all permutations of a given set means to find all possible ways the elements of the set can be arranged. For example, if the given set is {1, 2, 3} the permutations are: 1 2 3 1 3 2 2 1 3...

PHP function to generate all permutations 10 May 2011 | 08:09 pm

To generate all permutations of a given set means to find all possible ways the elements of the set can be arranged. For example, if the given set is {1, 2, 3} the permutations are: 1 2 3 1 3 2 2 1 3...

Removing accents from strings in PHP 7 Jan 2011 | 10:26 pm

A simple method for removing accents from strings in PHP: 1 2 $x = strtr($x, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaace...

Removing accents from strings in PHP 7 Jan 2011 | 02:26 pm

A simple method for removing accents from strings in PHP: 1 2 $x = strtr($x, "ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaace...

And so you code… 8 Sep 2010 | 11:45 pm

And so you code… 8 Sep 2010 | 04:45 pm

Recently parsed news:

Recent searches: