I have a string
$k="My name is Alice[1]";
What i want is to remove "[1]" from my string Using minimum steps,So that sentence will look like
$k="My name is Alice";
So antything that come inside [] should be removed.
I have a string
$k="My name is Alice[1]";
What i want is to remove "[1]" from my string Using minimum steps,So that sentence will look like
$k="My name is Alice";
So antything that come inside [] should be removed.