René's URL Explorer Experiment


Title: PHP: preg_split - Manual

X Title: PHP: preg_split - Manual

Open Graph Description: Split string by a regular expression

X Description: Split string by a regular expression

X: @official_php

direct link

Domain: php.net

DescriptionSplit string by a regular expression
twitter:cardsummary_large_image
twitter:creator@official_php
twitter:image:srchttps://www.php.net/images/meta-image.png
Nonehttps://www.php.net/images/meta-image.png
og:imagehttps://www.php.net/images/meta-image.png

Links:

update page nowhttps://php.net/x-myracloud-5958a2bbbed300a9b9ac631223924e0b/1768224663.127
https://php.net/
Downloads https://php.net/downloads.php
Documentation https://php.net/docs.php
Get Involved https://php.net/get-involved.php
Help https://php.net/support.php
https://php.net/releases/8.5/index.php
https://php.net/lookup-form.php
https://php.net/menu.php
Getting Startedhttps://php.net/manual/en/getting-started.php
Introductionhttps://php.net/manual/en/introduction.php
A simple tutorialhttps://php.net/manual/en/tutorial.php
Language Referencehttps://php.net/manual/en/langref.php
Basic syntaxhttps://php.net/manual/en/language.basic-syntax.php
Typeshttps://php.net/manual/en/language.types.php
Variableshttps://php.net/manual/en/language.variables.php
Constantshttps://php.net/manual/en/language.constants.php
Expressionshttps://php.net/manual/en/language.expressions.php
Operatorshttps://php.net/manual/en/language.operators.php
Control Structureshttps://php.net/manual/en/language.control-structures.php
Functionshttps://php.net/manual/en/language.functions.php
Classes and Objectshttps://php.net/manual/en/language.oop5.php
Namespaceshttps://php.net/manual/en/language.namespaces.php
Enumerationshttps://php.net/manual/en/language.enumerations.php
Errorshttps://php.net/manual/en/language.errors.php
Exceptionshttps://php.net/manual/en/language.exceptions.php
Fibershttps://php.net/manual/en/language.fibers.php
Generatorshttps://php.net/manual/en/language.generators.php
Attributeshttps://php.net/manual/en/language.attributes.php
References Explainedhttps://php.net/manual/en/language.references.php
Predefined Variableshttps://php.net/manual/en/reserved.variables.php
Predefined Exceptionshttps://php.net/manual/en/reserved.exceptions.php
Predefined Interfaces and Classeshttps://php.net/manual/en/reserved.interfaces.php
Predefined Attributeshttps://php.net/manual/en/reserved.attributes.php
Context options and parametershttps://php.net/manual/en/context.php
Supported Protocols and Wrappershttps://php.net/manual/en/wrappers.php
Securityhttps://php.net/manual/en/security.php
Introductionhttps://php.net/manual/en/security.intro.php
General considerationshttps://php.net/manual/en/security.general.php
Installed as CGI binaryhttps://php.net/manual/en/security.cgi-bin.php
Installed as an Apache modulehttps://php.net/manual/en/security.apache.php
Session Securityhttps://php.net/manual/en/security.sessions.php
Filesystem Securityhttps://php.net/manual/en/security.filesystem.php
Database Securityhttps://php.net/manual/en/security.database.php
Error Reportinghttps://php.net/manual/en/security.errors.php
User Submitted Datahttps://php.net/manual/en/security.variables.php
Hiding PHPhttps://php.net/manual/en/security.hiding.php
Keeping Currenthttps://php.net/manual/en/security.current.php
Featureshttps://php.net/manual/en/features.php
HTTP authentication with PHPhttps://php.net/manual/en/features.http-auth.php
Cookieshttps://php.net/manual/en/features.cookies.php
Sessionshttps://php.net/manual/en/features.sessions.php
Handling file uploadshttps://php.net/manual/en/features.file-upload.php
Using remote fileshttps://php.net/manual/en/features.remote-files.php
Connection handlinghttps://php.net/manual/en/features.connection-handling.php
Persistent Database Connectionshttps://php.net/manual/en/features.persistent-connections.php
Command line usagehttps://php.net/manual/en/features.commandline.php
Garbage Collectionhttps://php.net/manual/en/features.gc.php
DTrace Dynamic Tracinghttps://php.net/manual/en/features.dtrace.php
Function Referencehttps://php.net/manual/en/funcref.php
Affecting PHP's Behaviourhttps://php.net/manual/en/refs.basic.php.php
Audio Formats Manipulationhttps://php.net/manual/en/refs.utilspec.audio.php
Authentication Serviceshttps://php.net/manual/en/refs.remote.auth.php
Command Line Specific Extensionshttps://php.net/manual/en/refs.utilspec.cmdline.php
Compression and Archive Extensionshttps://php.net/manual/en/refs.compression.php
Cryptography Extensionshttps://php.net/manual/en/refs.crypto.php
Database Extensionshttps://php.net/manual/en/refs.database.php
Date and Time Related Extensionshttps://php.net/manual/en/refs.calendar.php
File System Related Extensionshttps://php.net/manual/en/refs.fileprocess.file.php
Human Language and Character Encoding Supporthttps://php.net/manual/en/refs.international.php
Image Processing and Generationhttps://php.net/manual/en/refs.utilspec.image.php
Mail Related Extensionshttps://php.net/manual/en/refs.remote.mail.php
Mathematical Extensionshttps://php.net/manual/en/refs.math.php
Non-Text MIME Outputhttps://php.net/manual/en/refs.utilspec.nontext.php
Process Control Extensionshttps://php.net/manual/en/refs.fileprocess.process.php
Other Basic Extensionshttps://php.net/manual/en/refs.basic.other.php
Other Serviceshttps://php.net/manual/en/refs.remote.other.php
Search Engine Extensionshttps://php.net/manual/en/refs.search.php
Server Specific Extensionshttps://php.net/manual/en/refs.utilspec.server.php
Session Extensionshttps://php.net/manual/en/refs.basic.session.php
Text Processinghttps://php.net/manual/en/refs.basic.text.php
Variable and Type Related Extensionshttps://php.net/manual/en/refs.basic.vartype.php
Web Serviceshttps://php.net/manual/en/refs.webservice.php
Windows Only Extensionshttps://php.net/manual/en/refs.utilspec.windows.php
XML Manipulationhttps://php.net/manual/en/refs.xml.php
GUI Extensionshttps://php.net/manual/en/refs.ui.php
ssdeep » https://php.net/book.ssdeep.php
« preg_replace_callback_array https://php.net/function.preg-replace-callback-array.php
PHP Manualhttps://php.net/index.php
Function Referencehttps://php.net/funcref.php
Text Processinghttps://php.net/refs.basic.text.php
PCREhttps://php.net/book.pcre.php
PCRE Functionshttps://php.net/ref.pcre.php
stringhttps://php.net/language.types.string.php
stringhttps://php.net/language.types.string.php
inthttps://php.net/language.types.integer.php
inthttps://php.net/language.types.integer.php
arrayhttps://php.net/language.types.array.php
falsehttps://php.net/language.types.singleton.php
PREG_SPLIT_NO_EMPTYhttps://php.net/pcre.constants.php#constant.preg-split-no-empty
PREG_SPLIT_DELIM_CAPTUREhttps://php.net/pcre.constants.php#constant.preg-split-delim-capture
PREG_SPLIT_OFFSET_CAPTUREhttps://php.net/pcre.constants.php#constant.preg-split-offset-capture
falsehttps://php.net/reserved.constants.php#constant.false
E_WARNINGhttps://php.net/errorfunc.constants.php#constant.e-warning
explode()https://php.net/function.explode.php
str_split()https://php.net/function.str-split.php
PCRE Patternshttps://php.net/pcre.pattern.php
preg_quote()https://php.net/function.preg-quote.php
explode()https://php.net/function.explode.php
preg_match()https://php.net/function.preg-match.php
preg_match_all()https://php.net/function.preg-match-all.php
preg_replace()https://php.net/function.preg-replace.php
preg_last_error()https://php.net/function.preg-last-error.php
Learn How To Improve This Pagehttps://github.com/php/doc-base/blob/master/README.md
Submit a Pull Requesthttps://github.com/php/doc-en/blob/master/reference/pcre/functions/preg-split.xml
Report a Bughttps://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Ffunction.preg-split%0A%0A---
+add a notehttps://php.net/manual/add-note.php?sect=function.preg-split&repo=en&redirect=https://www.php.net/manual/en/function.preg-split.php
uphttps://php.net/manual/vote-note.php?id=94238&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=94238&page=function.preg-split&vote=down
jan dot sochor at icebolt dot infohttps://php.net/function.preg-split.php#94238
https://php.net/function.preg-split.php#94238
uphttps://php.net/manual/vote-note.php?id=92632&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=92632&page=function.preg-split&vote=down
buzoganylaszlo at yahoo dot comhttps://php.net/function.preg-split.php#92632
https://php.net/function.preg-split.php#92632
uphttps://php.net/manual/vote-note.php?id=124158&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=124158&page=function.preg-split&vote=down
Hayley Watsonhttps://php.net/function.preg-split.php#124158
https://php.net/function.preg-split.php#124158
uphttps://php.net/manual/vote-note.php?id=118326&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=118326&page=function.preg-split&vote=down
canadian dot in dot exile at gmail dot comhttps://php.net/function.preg-split.php#118326
https://php.net/function.preg-split.php#118326
uphttps://php.net/manual/vote-note.php?id=100729&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=100729&page=function.preg-split&vote=down
Daniel Schroederhttps://php.net/function.preg-split.php#100729
https://php.net/function.preg-split.php#100729
uphttps://php.net/manual/vote-note.php?id=104602&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=104602&page=function.preg-split&vote=down
eric at clarinova dot comhttps://php.net/function.preg-split.php#104602
https://php.net/function.preg-split.php#104602
uphttps://php.net/manual/vote-note.php?id=101109&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=101109&page=function.preg-split&vote=down
PhoneixSegovia at gmail dot comhttps://php.net/function.preg-split.php#101109
https://php.net/function.preg-split.php#101109
uphttps://php.net/manual/vote-note.php?id=51209&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=51209&page=function.preg-split&vote=down
Stevehttps://php.net/function.preg-split.php#51209
https://php.net/function.preg-split.php#51209
uphttps://php.net/manual/vote-note.php?id=93907&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=93907&page=function.preg-split&vote=down
php at dmi dot me dot ukhttps://php.net/function.preg-split.php#93907
https://php.net/function.preg-split.php#93907
uphttps://php.net/manual/vote-note.php?id=45982&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=45982&page=function.preg-split&vote=down
jetsoft at iinet.net.auhttps://php.net/function.preg-split.php#45982
https://php.net/function.preg-split.php#45982
uphttps://php.net/manual/vote-note.php?id=89649&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=89649&page=function.preg-split&vote=down
csaba at alum dot mit dot eduhttps://php.net/function.preg-split.php#89649
https://php.net/function.preg-split.php#89649
uphttps://php.net/manual/vote-note.php?id=104618&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=104618&page=function.preg-split&vote=down
david dot binovec at gmail dot comhttps://php.net/function.preg-split.php#104618
https://php.net/function.preg-split.php#104618
uphttps://php.net/manual/vote-note.php?id=114474&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=114474&page=function.preg-split&vote=down
Millerhttps://php.net/function.preg-split.php#114474
https://php.net/function.preg-split.php#114474
uphttps://php.net/manual/vote-note.php?id=130187&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=130187&page=function.preg-split&vote=down
virtualryzen at gmail dot comhttps://php.net/function.preg-split.php#130187
https://php.net/function.preg-split.php#130187
uphttps://php.net/manual/vote-note.php?id=127151&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=127151&page=function.preg-split&vote=down
Walfhttps://php.net/function.preg-split.php#127151
https://php.net/function.preg-split.php#127151
uphttps://php.net/manual/vote-note.php?id=126520&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=126520&page=function.preg-split&vote=down
dewi at dewimorgan dot comhttps://php.net/function.preg-split.php#126520
https://php.net/function.preg-split.php#126520
uphttps://php.net/manual/vote-note.php?id=91067&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=91067&page=function.preg-split&vote=down
kenorb at gmail dot comhttps://php.net/function.preg-split.php#91067
https://php.net/function.preg-split.php#91067
uphttps://php.net/manual/vote-note.php?id=116490&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=116490&page=function.preg-split&vote=down
markachttps://php.net/function.preg-split.php#116490
https://php.net/function.preg-split.php#116490
uphttps://php.net/manual/vote-note.php?id=120149&page=function.preg-split&vote=up
downhttps://php.net/manual/vote-note.php?id=120149&page=function.preg-split&vote=down
php at haravikk dot mehttps://php.net/function.preg-split.php#120149
https://php.net/function.preg-split.php#120149
+add a notehttps://php.net/manual/add-note.php?sect=function.preg-split&repo=en&redirect=https://www.php.net/manual/en/function.preg-split.php
PCRE Functionshttps://php.net/ref.pcre.php
preg_​filterhttps://php.net/function.preg-filter.php
preg_​grephttps://php.net/function.preg-grep.php
preg_​last_​errorhttps://php.net/function.preg-last-error.php
preg_​last_​error_​msghttps://php.net/function.preg-last-error-msg.php
preg_​matchhttps://php.net/function.preg-match.php
preg_​match_​allhttps://php.net/function.preg-match-all.php
preg_​quotehttps://php.net/function.preg-quote.php
preg_​replacehttps://php.net/function.preg-replace.php
preg_​replace_​callbackhttps://php.net/function.preg-replace-callback.php
preg_​replace_​callback_​arrayhttps://php.net/function.preg-replace-callback-array.php
preg_​splithttps://php.net/function.preg-split.php
Copyright © 2001-2026 The PHP Documentation Grouphttps://php.net/manual/en/copyright.php
My PHP.nethttps://php.net/my.php
Contacthttps://php.net/contact.php
Other PHP.net siteshttps://php.net/sites.php
Privacy policyhttps://php.net/privacy.php
javascript:;

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.