Results 1 to 4 of 4

Thread: sscanf function

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    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

  2. #2
    scoutt
    Guest
    something like

    $B = explode("^^^", A$);

    echo $B;

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Sorry

    for sorry!
    It does not work

  4. #4
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width