Advertisement

07.23.2006 at 08:03PM PDT, ID: 21929106
[x]
Attachment Details

Need Help with php Split Function

Asked by foreverdita in PHP Scripting Language

Tags: split, php, function

I have already searched - can't find the answer to this problem.

I am sending a variable to a php page and would like to split it into 2 parts.

Here is the variable I am sending:

page.asp?id=45678911

I want to split this into two parts - first part being the 456789 and the second part being the 11.

The 11 is what I really want.  456789 is a security measure to distract the real id of 11.  

In asp this is done like this:

myid1 =  split(myid, "456789") and then calling

myid1(0)

HOw can I do it in php?

THanks so much!Start Free Trial
 
Loading Advertisement...
 
[+][-]07.23.2006 at 09:04PM PDT, ID: 17165279

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2006 at 09:20PM PDT, ID: 17165331

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2006 at 12:18AM PDT, ID: 17165862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2006 at 07:41AM PDT, ID: 17168144

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: split, php, function
Sign Up Now!
Solution Provided By: arun80_inin
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.24.2006 at 01:23PM PDT, ID: 17171196

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32