4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 How to split
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
tyjtyj
Junior WebHelper
Junior WebHelper


Joined: 22 Feb 2002
Posts: 20

PostPosted: Fri Jan 24, 2003 3:05 am (14 years, 11 months ago) Reply with QuoteBack to Top

How to split this statement in php ?

search=abc

I want to split search and abc

thank you

________________________________
Justin Store
http://www.tyjtyj.com
OfflineView User's ProfileFind all posts by tyjtyjSend Personal MessageSend email
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Fri Jan 24, 2003 7:06 am (14 years, 11 months ago) Reply with QuoteBack to Top

Code:
$new_variable=explode('=', $old_variable);


$new_variable will contain an array with "search" and "abc" in it, and $old_variable will contain "search=abc".

I take it this isn't a query string, like http://www.site.com/script.php?search=abc ? Because if it is, $HTTP_GET_VARS['search'] would contain the text "abc".

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.05257 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme