<some string>[]<somestring>
example
variable[]_abc
How can I get everything except [] from the string using preg_ in php?
[]
preg_
preg_replace('/\[\]/','',$string);