User Profile

Collapse

Profile Sidebar

Collapse
kingdon
kingdon
Last Activity: Aug 31 '06, 03:48 PM
Joined: Aug 21 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kingdon
    replied to How do I get the middle of a string?
    in PHP
    Actually I needed 2 separate separators in this case. But I may be able to use your other example in the future.

    Thanks again
    Dean
    See more | Go to post

    Leave a comment:


  • kingdon
    replied to How do I get the middle of a string?
    in PHP
    Ronald,

    You are right. I must of copied something wrong. I just tried it and it worked. Thank you very much. You saved me hours of trying to figure this out.

    Dean
    See more | Go to post

    Leave a comment:


  • kingdon
    replied to How do I get the middle of a string?
    in PHP
    Ronald,

    I get an error when I use that command. Any other ideas or do you know why I would get that error?

    Fatal error: Call to undefined function: extractit()
    See more | Go to post

    Leave a comment:


  • kingdon
    replied to How do I get the middle of a string?
    in PHP
    I have a database of full names such as "Michael Ian Black". I want to extract "Ian" from this string. Bascially I want to know the commands to strip "Michael " from this string by searching for the first space. Then have something like this.

    $a = "Michael Ian Black";
    $b = "Ian Black";

    Then I want to search for the first space again and strip everything after it....
    See more | Go to post

    Leave a comment:


  • kingdon
    started a topic How do I get the middle of a string?
    in PHP

    How do I get the middle of a string?

    I have a question. If I have a string like this...

    $a = "I don't need this @This is the middle I need # This is the end I don't need";

    Does anyone know the command that would let me get "This is the middle I need" out of this string and put it into $b?

    Any help would be appreciated.
    Thanks
    Don
    See more | Go to post
No activity results to display
Show More
Working...