Search Result

Collapse
2 results in 0.0050 seconds.
Keywords
Members
Tags
str_replace
  •  

  • luke noob
    started a topic How to shuffle an array?
    in PHP

    How to shuffle an array?

    Can anyone show me an example of how to shuffle an array?
    See more | Go to post
    Last edited by Niheel; Oct 19 '10, 06:18 PM. Reason: Not needed

  • rienh
    started a topic Last word of string UpperCase
    in PHP

    Last word of string UpperCase

    Hello all, I try to accomplish the following.
    I have a string like: “volkswage n-golf-gti” **
    And I want it to change the string into:
    “Volkswage n Golf GTI” (last part completely uppercase)

    But I have some difficulties understanding preg_replace.
    Right now I have the following code:

    Code:
    <?php 
    $string = 'volkswagen-golf-gti'; 
    $string2 = ucwords(str_replace('-', ' ', $string)); 
    $string2
    ...
    See more | Go to post
    Last edited by rienh; Aug 30 '10, 02:10 PM. Reason: type error
Working...