Help for this page

Select Code to Download


  1. or download this
    # Begin of assignment
    substr(        # Start of substr call, using substr as lvalue
    ...
    '';            # Righthand operand of the assignment operator
    # End of assignment. An assignment returns the assigned value,
    # '' in this case.
    
  2. or download this
    substr(        # Start of substr call, returning the old stuff
        $string,   # First argument
    ...
        6,         # Third argument
        ''         # Fourth argument: replacement text
    );