Example #1
0
/**
 * Converts a string variable to an instance of `PowerString`.
 * @param string $str Variable.
 * @return PowerString
 */
function toPS(&$str)
{
    return PowerString::cast($str);
}