→ A Blog, By Luke Morton: Object method chaining

lukemorton:

Today I’ll start with some PHP and JS.

$('<div class="successful_message">A success message</div>') .insertAfter('h1') .delay(5000) .fadeOut() ;
Image::factory('/my/path/to/image.jpg') ->resize_proportional(1024) ->flip('y') ->save(function ($current_name) { return str_replace('.jpg',...
1,296 notes
May 30, 2012
  1. taruhan-bola-1 reblogged this from lukemorton
  2. costaricanfishing reblogged this from lukemorton
© 2012–2013 Three in Brooklyn