|
-
Mar 7th, 2002, 06:56 AM
#1
Thread Starter
Hyperactive Member
sscanf function
In This Example:
<?
list($A) = sscanf("Hi How Are ^^^You^^^ I'm Fine","Format");
Echo $A;
?>
I Want $A equal the string between ^^^ and ^^^
That mean:
$A="You"
What is the format which will solve this problem.
Thanks
-
Mar 7th, 2002, 10:27 AM
#2
something like
$B = explode("^^^", A$);
echo $B;
-
Mar 10th, 2002, 09:02 AM
#3
Thread Starter
Hyperactive Member
Sorry
for sorry!
It does not work
-
Mar 10th, 2002, 12:00 PM
#4
PHP Code:
<?
$A = "Hi How Are ^^^You^^^ I'm Fine";
Echo $A;
$B = explode("^^^", A$);
echo $B[1];
?>
try that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|