drupal - Problems with PHP explode -


i'm using code:

$imageurl = "http://siteadress/sites/default/files/bjorn_4.jpg"; $pieces = explode('/', $imageurl); print_r($pieces); 

to split url.

the print_r gives me result =

array ( [0] => http://siteadress/sites/default/files/bjorn_4.jpg ) 

shouldn't split url after each /? array ( [0] => http:/ [1] => / [2] => siteadresses or that?

i think should try :

$imageurl = [node:field_banner_image]; 

because quotes explode think string [node:field_banner_image] , not string inside.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -