I couldn’t find either of these functions that satisfied my edge cases or desire for simplicity so I wrote/adapted some of my own. Feel free to use, modify, distribute without attribution, but I’d be eternally grateful if you did
The test for integer is adapted from this post, which is actually almost spot on, apart from their is_int([0]) returns true, as does any integer in a string.
I’m pretty sure I’ve seen this test for string a hundred times on the internet and in books. It is by far the most robust:
Please let me know if you can break it!
Hi there! Do you use Twitter? I’d like to follow you if that would be okay. I’m absolutely enjoying your blog and look forward to new posts.
Автор предлагает читателю разные взгляды на проблему, что способствует формированию собственного мнения.
Я оцениваю использование автором разнообразных источников, чтобы подтвердить свои утверждения.
I every time spent my half an hour to read this blog’s posts every day along with a cup of coffee.
Это помогает читателям получить объективное представление о рассматриваемой теме.
Я оцениваю объективность автора и его стремление представить разные точки зрения на проблему.
Why users still use to read news papers when in this technological world everything is existing on web?
I have learn a few good stuff here. Certainly price bookmarking for revisiting. I surprise how much attempt you put to make this sort of fantastic informative site.
Я впечатлен этой статьей! Она не только информативна, но и вдохновляющая. Мне понравился подход автора к обсуждению темы, и я узнал много нового. Огромное спасибо за такую интересную и полезную статью!