Apr 28, 2011

How to split data in php

You can use the explode function to split data in PHP.

$url = "http://www.domain.com/images.jpg";

$data = explode("/", $url);

$var = $data[count($data) - 1];

No comments:

Post a Comment