Quantcast
Channel: Squirrel Hacker » Subroutines
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

Damn-it PHP

Run this, I will wait <?php $items = array('name'=>'blah1', 0=>array('blah2')); $name = 'name'; foreach($items as $key=>$value){ var_dump($key); var_dump($name); var_dump($name==$key);...

View Article


Image may be NSFW.
Clik here to view.

Best javascript function ever

function javascriptEnabled(){ return true; } Source That is all. Related posts: Spartan Coding On naming functions sanely A couple useful jQuery Snippets

View Article


Image may be NSFW.
Clik here to view.

On naming functions sanely

When naming your functions, there are certain function prefix/postfixes that should only return specific types. They help the programmers who follow in your footsteps to grasp what it is you were...

View Article
Browsing latest articles
Browse All 3 View Live