1. #1
    WooZ's Avatar
    Registered
    19/01/05
    Location
    Zonhoven
    Posts
    595
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/3

    PHP: string splitten

    Een vraag: ik heb een string, en ik wil die splitten zodat ik alleen de laatste 3 tekens krijg gereturned van de oorspronkelijke string. Met welke functie is dit mogelijk?
    no votes  

  2. #2
    Rayne Varga's Avatar
    Registered
    26/04/04
    Location
    Gent
    Posts
    967
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    $string = substr($string,strlen($string) - 3) of iets in die aard.
    Hier staat meer uitleg.
    Bezoek mijn website en Facebook pagina
    no votes  

  3. #3
    WooZ's Avatar
    Registered
    19/01/05
    Location
    Zonhoven
    Posts
    595
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Thanks.
    no votes  

  4. #4
    Fr3aK's Avatar
    Registered
    17/07/02
    Location
    Antwerpen
    Posts
    2,614
    iTrader
    0
    Mentioned
    0 Post(s)
    Gewoon:
    PHP Code:
    $string substr($string, -3); 
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in