str::from($string, $from)

Returns the end of the string, starting from the given character

  • $string (string)
  • $from (string)
    Character(s) to start from
  • return (string)
    The end of the string

Example

<?php

echo str::from('string', 'r');
// output: ring