Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
syyongx committed Apr 23, 2019
1 parent 097cc8c commit eead397
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php.go
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,8 @@ func Implode(glue string, pieces []string) string {
return buf.String()
}

// in_array()
// InArray in_array()
// haystack supported types: slice, array or map
func InArray(needle interface{}, haystack interface{}) bool {
val := reflect.ValueOf(haystack)
switch val.Kind() {
Expand Down Expand Up @@ -1277,6 +1278,7 @@ func Abs(number float64) float64 {
}

// Rand rand()
// Range: [0, 2147483647]
func Rand(min, max int) int {
if min > max {
panic("min: min cannot be greater than max")
Expand Down

0 comments on commit eead397

Please sign in to comment.