Would be grateful for any assistance with this.

I have:

$value = gmdate("F d Y", getlastmod());

This is returning (for example):-

June 24 2016

My question is how to extract the dayofweek information out of $value?

My output needs to look like:

Friday, June 24, 2016

Is there a way to extract the dayofweek, Month, dayofmonth and year out of $value? If not, how can I get those values from 'getlastmod' ?

Many thanks