Regular expression-- preg_split ()?

$var = "AMG";
$exp =" / /";

print_r (preg_split ($exp,$var));
) result:

    Array ( [0] => [1] => A [2] => M [3] => G [4] => ) 

read the manual and the explanation is:

     pattern  subject    FALSE 
    

does not quite understand what this sentence means, why does it return two empty elements?

Php
Mar.05,2021

The

parameter is missing, the PREG_SPLIT_NO_EMPTY flag is set, and preg_split () will return only the delimited non-empty parts.

preg_split($exp, $var, -1, PREG_SPLIT_NO_EMPTY);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50226-4363e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50226-4363e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?