Quantcast
Viewing all articles
Browse latest Browse all 42

Drupal – Leveraging built in string functions in custom modules

Drupal includes native versions of a few common php string functions; strlen() for example is called with drupal_strlen(). drupal_strlen counts the amount of characters in a UTF-8 string vs. counting the bytes of a string. Not a huge difference perhaps but according to the brief documentation: This is less than or equal to the byte [...]

Viewing all articles
Browse latest Browse all 42

Trending Articles