Related Content
Creating Sparklines In PHP
A sparkline is a very small line graph that is intended to convey some simple information, usually in terms of a numeric value over time. They tend to lack axes or other labels and are added to information readouts in order to expand on numbers in order to give them more context.
PHP:CSI - Improving Bad PHP Logging Code
I read The Daily WTF every now and then and one story about bad logging code in PHP stood out to me. The post looked at some PHP code that was created to log a string to a file, but would have progressively slowed down the application every time a log was generated.
Creating Tic Tac Toe In JavaScript Part 2: Adding A Computer Player
After creating tic tac toe in JavaScript in my previous article I decided to add a second player in the form of a computer opponent.
Creating Tic Tac Toe In JavaScript Part 1: The Game
Tic Tac Toe (or noughts and crosses) is a good game to create when learning game development as it has simple rules and a known win state.
Generating Histogram Colour Analysis Graphs From Images In PHP
If you've ever looked at the settings in a digital camera, or have experience with image processing programs like GIMP, then you may have seen a colour histogram. This is a simple graph that shows the amount of different shades of colour are present in the image.
PHP:CSI - To Switch, Or Not To Switch?
I was writing unit tests for a API mapping function recently and came across this interesting issue. The code I was writing tests for was in a legacy codebase that I was making changes to, and it made sense to have some unit tests in there before I started work to ensure everything worked before and after.
Comments
Why you're getting
NaN
: When you asknew Date(...)
to handle an invalid string, it returns aDate
object which is set to an invalid date (new Date("29-02-2012").toString()
returns"Invalid date"
). CallinggetTime()
on a date object in this state returns.works perfectly thanks
Submitted by Ravi on Fri, 10/05/2018 - 07:30
PermalinkSweet! Thank you for the information!
Submitted by Nicephorus Denisov on Fri, 09/27/2019 - 08:53
PermalinkNіce! Thanks a lot for the guide!
Submitted by Joseph Carroll on Sun, 10/06/2019 - 04:55
PermalinkThanks :)
Submitted by rüzgar on Fri, 05/08/2020 - 12:57
Permalinkit helped me a lot, very thanks...
Submitted by Yilmaz on Fri, 01/08/2021 - 18:27
Permalinkvery nice blog
Submitted by A guy on Thu, 05/13/2021 - 16:27
PermalinkAdd new comment