I would like to clean a variable (text) from everything which is between [ and ].
$text = 'this is my  test text. there could be come [words] but I dont know where [123dsf]. thank you';
$description = preg_replace('??????', '', $text);
the end result should be:
this is my test text. there could be come but I dont know where . thank you
Basically delete all parts with  and everything between the open [ and close ].
Thank you in advance