PHP Tutorial // Rewriting the PHP Sort Function

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,878
Loading...
Alert icon
Sign in or sign up now!
Alert icon
There is no Interactive Transcript.

Uploaded by on Oct 20, 2010

http://mpsoftware.dk
Download phpDesigner7 free for 21days!

In this tutorial I cover how to rewrite a method of sorting an array.

Source: http://phpsquad.net/source/sort.phps

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (lifeg0eson666)

  • Nice tutorial.

    Keep emm coming!

  • @zachattackpro Thanks Zach

  • Thank you so much I'm learning a lot from you.

    I hope I could repay you someday =)

  • @willzurmacht Glad you're learning something :)

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • @pule44 You use explode on the input textarea and split them by a new line (\n). Make a separate array for valid emails and for each valid email just add that email to the new array.

  • @pule44 PHP has built into filters that can the validity of an email.

  • Don't forget to NOT use count() inside your for() loop. Set a variable first, and since you're checking the count() more than once, might as well set it at the beginning of the function.

  • i dont want you to see me next time. see me now beloved.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more