scope - PHP IF ELSE issue, can not get correct answers -
I wrote a PHP function to get the weekend, this " $ data ['project'] "
It's not empty, but it's You have to go through the when calling: - $ end = date ("ymd", strtotime ('next Sunday'));
function weekendignSet (if {empty ($ data ['project'])) {$ end = $ data ['project'] [0] - & gt; Week_and_day; } And (if (($ _GET ['week_ending'])) {$ end = $ _GET ['week_ending'];} and {$ end = date ("Wi-M-D", strotome ('next What is the error? Thank you
$ data to work, it will check if () otherwise try if you are always in the second position
function weekendignSet ($ data) {
weekendignSet ($ data);