Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
syyongx committed Nov 19, 2018
1 parent c59892c commit 75672e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions php.go
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,9 @@ func Empty(val interface{}) bool {
}

// is_numeric()
// Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part.
// Thus +0123.45e6 is a valid numeric value.
// In PHP hexadecimal (e.g. 0xf4c3b00c) is not supported, but IsNumeric is supported.
func IsNumeric(val interface{}) bool {
switch val.(type) {
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
Expand Down

0 comments on commit 75672e5

Please sign in to comment.