Brettic.us

Recent twitter entries...

  •  
follow me on twitter
subscribe to rss feed

PHP

Getting last chars with substr() function

echo substr('abcdef', -1, 1); // f

Post a comment

Click here to cancel reply.

  • Categories

    • Bretticus
    • CodeIgniter
    • General
    • Humor
    • Linux
    • Mac
    • Netbeans
    • PHP
    • Programming
    • Technology
  • Recent Posts

    • PHP 5.2 and 5.3 side-by-side on Apache and Ubuntu 10.10
    • CodeIgniter Form Validation: How to allow inline and config rules simultaneously
    • Getting the GET back in CodeIgniter!
    • Google Analytics Hook for CodeIgniter
    • How to install PHP Zip Extension for MAMP 1.9
  • Pages

    • About
      • My Resume
    • Code
      • HTML2PHP
      • PHP: Codeigniter Library for Eztexting.com API
      • PHP: Remote IP + Load Balancer
      • PHPizer
      • Woot Bash Script
    • Tech Wiki
      • CSS Tips
      • MySQL Tricks
      • PHP
      • Subversion Techniques
    • Unobtrusive JavaScript Slides
  • Archives

    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • November 2009
    • August 2009
    • July 2009
    • October 2008
    • September 2008
    • June 2007
    • September 2006
    • August 2006
  • Subscribe

    • Facebook
    • LinkedIn
    • Twitter Feed
© 2012 Brettic.us