I have a mutli-line string $comment
, which looks like:
@Description: some description.
@Feature/UseCase: some features.
@InputParameter: some input param.
@ChangedParameter: some changed param.
@NewOutputParameter: some output param.
@Comments/Note: some notes.
I want to convert it into six different strings so that after the conversion it should look like: $description = 'some description'
, $features = 'some features'
and so on. How can I achieve that?
I have tried explode
, but it's not working for me. I'm a beginner in PHP and would appreciate any help.