Skip to content
Advertisement

Tag: date

Why is today`s weekday pluss two not working?

Any reason why $daynames[$dayW +1] works and displays todays dayname +1, but not $daynames[$dayW +2]? I am trying to display days in the week +1 day in the first and +2 days in the second cell, but I get an error on the +2 line. Answer I guess you’re trying to print what is the day name when you add

How to grab the year from a string with php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have a couple of strings which look like this: $string1 = ’03 Aug 2020 00:49′ $string2 = ’15 Sep

show difference between of two price list

I have history list of product price(order by created_at) like this: Now for show data in table I listed price using foreach method like this: I can see true output in table but I need to show difference between of two price in the third column like this picture: how do can i show difference between of two price in

Advertisement