Ask Question Sign In Sign Up
Home
Sign In
Sign Up
  • Home
  • >
  • PHP
  • >
  • Do not check for int type like this in PHP
PHP JavaScript C/C++ Golang Java Python SQL Ruby Kotlin Swift Other
Category
PHP
JavaScript
C/C++
Golang
Java
Python
SQL
Ruby
Kotlin
Swift
Other

Do not check for int type like this in PHP

Member

braden_wiegand

by braden_wiegand , in category: PHP , a year ago

Do not check for int type like this in PHP 😀

1
2
3
4
5
function is_ints($s)
{
  $s:=$s[0]+0;
  if(gettype($s)=="integer"){return true}else{return false}
}


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers

Related Threads:

Spent a lot of time to understand this logic in Python

Design Product Table in SQL when you don't know how is foreign keys works in SQL

The design of menu table in SQL

Get Image function in PHP

Convert Boolean into Int in Java

List of Constants in Javascript

About us

  • Contact us
© 2023 Copyright: crapcodes.com

This Site is Created By mywebforum.com

Get Your Own Questions & Answers platform