Use of string - split string

zhaozj2021-02-16  97

What should I do if I just want to handle a character of the string?

There are two ways to solve.

1. Use for () loop;

For ($ I = 0; $ I

Char = $ STR [$ I]

}

?>

2. Using regular

$ Chars = preg_split ("//", $ STR);

?>

转载请注明原文地址:https://www.9cbs.com/read-10628.html

New Post(0)