I'm confused. I'm using a Global: PHP field inside a view to tweak the output of the row based on the date value of a certain field.
print (strtotime((string)$row->field_date));
Doesn't seem to return anything.
print $row->field_date;
Returns "Tuesday, December 1, 2015"
print strtotime('Tuesday, December 1, 2015');
Returns 1448956800
I've tried converting the $row object to an array just for fun with get_object_vars($row)
but that didn't work either.
In my case I expect that print (strtotime((string)$row->field_date));
returns the value (unix timestamp) 1448956800.
print (strtotime((string)$row->field_date));
to print a unix timestamp like 1448956800. That is what I desire.