Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tokenize string
<?php strtok(string $string, string $token): string|false
<?php     {

        if (isset($params[0])) {


            $url = strtok($value, '#');




            $fragment = parse_url($value, PHP_URL_FRAGMENT);
<?php     {

        if (isset($params[0])) {


            $url = strtok($value, '?');

            $url = strtok($url, '#');
<?php         if (isset($params[0])) {


            $url = strtok($value, '?');

            $url = strtok($url, '#');




            $parsedUrl = parse_url($value);
<?php     {

        if (isset($params[0])) {


            $url = strtok($value, '?');

            $url = strtok($url, '#');
<?php         if (isset($params[0])) {


            $url = strtok($value, '?');

            $url = strtok($url, '#');




            $parsedUrl = parse_url($value);