Jump to content

Help needed on substring


kks_krishna

Recommended Posts

HI,

 

I have writen the code and its working fine. Please anyone check for the

correctness of the code. If you know any better approach please guide me.

The following code i have written:

 

	
$q_url_id = $_GET['q_url_id'];
$chars = preg_split('[-]', $q_url_id, 2, PREG_SPLIT_NO_EMPTY);
print_r($chars);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.