Drupal Camp Deccan

21 10 2011

Dries visit to India started big movement in Indian Drupal community. Every body is very excited to meet him, have a talk with him, of course a snap.

Drupal community in the south region joined together and planned Drupal Camp Deccan. It is going to be the biggest Drupal event in India. With the help of Different organizations, different communities, different cultures. The common thing is Drupal. So excited for this event.

I am proud to be a member of Drupal community, and proud to be a employee of Azri who is the main organizer for the event Drupal Camp Deccan

The Drupal Camp Deccan site is so cool, and logo is great. Kudos for the site designers and logo designers.


PHP + Regular Expression to find the last word in string

18 10 2011

Below is the code to find the last word of a string

$pattern = '/[^ ]*$/';
$str = 'Hello world';
preg_match($pattern, $str, $results);

The $results[0] contains last word “world”. If we need to remove or replace the last word use below code.

preg_replace($pattern, '', $str);