Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列「33a49bc12d」があり、この配列が必要です0 => 33、1 => a、2 => 49、3 => bc、4 => 12、5=>d。これは私のスキルではありません。私たちを手伝ってくれますか?どうも
これで始めることができます:
<?php $text = "33a49bc12d"; preg_match_all("/([\d]+|[a-z]+)/i", $text, $out); print_r($out[0]); ?> Array ( [0] => 33 [1] => a [2] => 49 [3] => bc [4] => 12 [5] => d )