Extract part of a string before and after a special character

  php

I need to extract and show some words before and after a special character.

Anywords1 Anywords2 – Anywords3 Anywords4 (39948)

I need to show (PHP):
Anywords1 Anywords2
Anywords3 Anywords4

Thanks

Source: Ask PHP

LEAVE A COMMENT