Added text and expression functions for PHP and fixed name error for expression function in swig (#39)