strtok

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

                'name' => $result->name,

                'type_name' => strtok($type, '(') ?: '',

                'type' => $type,

                'collation' => $collation,

                'nullable' => (bool) $result->nullable,
<?php                 $type = strtolower($type);



                if ($this->matchesType($accept, $type) || $accept === strtok($type, '/').'/*') {

                    return true;

                }

            }
<?php                 $type = strtolower($type);



                if ($this->matchesType($type, $accept) || $accept === strtok($type, '/').'/*') {

                    return $contentType;

                }

            }
<?php         $tableColumn = array_change_key_case($tableColumn, CASE_LOWER);



        $dbType = strtolower($tableColumn['type']);

        $dbType = strtok($dbType, '(), ');

        assert(is_string($dbType));



        $length = $tableColumn['length'] ?? strtok('(), ');
<?php         $dbType = strtok($dbType, '(), ');

        assert(is_string($dbType));



        $length = $tableColumn['length'] ?? strtok('(), ');



        $fixed = null;
<?php     protected function _getPortableTableColumnDefinition($tableColumn)

    {

        $dbType = strtok($tableColumn['type'], '(), ');

        assert(is_string($dbType));



        $fixed   = null;
<?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);
<?php                 }

                if ($input->getOption('path')) {

                    $io->write($package->getName(), false);

                    $io->write(' ' . strtok(realpath($composer->getInstallationManager()->getInstallPath($package)), "\r\n"));



                    return $exitCode;

                }
<?php                             $packageViewData['description'] = $package->getDescription();

                        }

                        if ($writePath) {

                            $packageViewData['path'] = strtok(realpath($composer->getInstallationManager()->getInstallPath($package)), "\r\n");

                        }



                        if ($latestPackage instanceof CompletePackageInterface && $latestPackage->isAbandoned()) {
<?php                         $io->write(' <' . $style . '>' . str_pad($latestVersion, $latestLength, ' ') . '</' . $style . '>', false);

                    }

                    if (isset($package['description']) && $writeDescription) {

                        $description = strtok($package['description'], "\r\n");

                        $remaining = $width - $nameLength - $versionLength - 4;

                        if ($writeLatest) {

                            $remaining -= $latestLength;
<?php         foreach ($arrayTree as $package) {

            $io->write(sprintf('<info>%s</info>', $package['name']), false);

            $io->write(' ' . $package['version'], false);

            $io->write(' ' . strtok($package['description'], "\r\n"));



            if (isset($package['requires'])) {

                $requires = $package['requires'];