Advanced Search

View RSS Feed

traq

  1. A Really Big PHP Tutorial [...part 1]

    .
    Who Is This For?

    I'm going to make some assumptions about you, as a programmer:
    • You're probably not an expert with PHP, but you know at least "the basics."
      If you're a copy+paste PHP coder, that's okay, but hopefully you won't be once we're done.
    • You have some patience. Yes, you want to see results; but you can trust that they're coming.
    • You're "okay" with doing things you've never tried before.

    There are some things I would like you to know ...

    Updated 01-13-2013 at 11:30 PM by traq (added 'expiry' config option)

    Categories
    PHP coding , Web Design issues
  2. Heaps o' Fun

    yes, I'm still doing the tutorial. : )

    Did you know ...?

    PHP Code:
    <?php

    class alphaHeap extends SplHeap{
        public function 
    compare$a,$b ){
            return 
    strcmp$b,$a );
        }
    }

    $alpha = new alphaHeap;

    # IN put:
    $alpha->insert'cat' );       // C
    $alpha->insert'dog' );       // D
    $alpha->insert'boy' );       // B
    $alpha->insert'elephant' );  // E
    ...

    Updated 12-23-2012 at 08:09 PM by traq

    Categories
    PHP coding , Off beat topics