Php handles strings

in an article, I want to extract what I want (in the symbol []). There may be many. I need to check whether there is repetition, non-repetitive use, link, or none! Find the code ~

Php
Sep.16,2021

<?php
$str = '';
preg_match_all('!(.+?)!',$str,$rows);

$result = array_unique($rows[1]);
$result = implode(',',$result);
var_dump($result);
Menu