0
function hashTagFinder($str)
{
$hash= explode(" ", substr($str, strpos($str, "#")));
$i=0;
foreach ($hash as $tag) {
$finder=substr_count($tag, "#");
if ($finder>=1) {
$fArray = array([$i]=> $tag);
}
$i++;
}
}
我是一個初學者,我想做一個hashtag finder功能。我的php標籤標識符功能不起作用
我想這樣做,但它看起來像我不能使用對象和數組來定義鍵。
非常感謝你:d。 – AyKenDuu