So let's say that I have the following code:
$var = '-77-randomtext-moretext.extension'
So that nothing in the variable is fixed, except for the hyphens ( - ), and the extension.
Then let's say that I need to strore the '-77-' part as a string. '-77-' meaning anything in between the first two hyphens, including the hyphens themselves.
How could I do this?