PHP 클래스 Scalr\UI\Request\JsonData
Convert input json string to array object
파일 보기
프로젝트 열기: scalr/scalr
1 사용 예제들
공개 메소드들
메소드 상세
Checks if a value exists in an array
public has ( mixed $needle, boolean $strict = false ) : boolean |
$needle |
mixed |
A value |
$strict |
boolean |
optional If it is set to TRUE then function will also
check the types of the needle in the haystack. |
리턴 |
boolean |
Returns TRUE if needle is found in the array, FALSE otherwise. |
initFromRequest()
공개 정적인 메소드
public static initFromRequest ( $value, $name = '' ) : JsonData |
리턴 |
JsonData |
|
Searches the array for a given value and returns the corresponding key if successful
public search ( mixed $needle, boolean $strict = false ) : mixed |
$needle |
mixed |
The searched value |
$strict |
boolean |
optional Will searchf for identical elements |
리턴 |
mixed |
Returns the key for needle if it is found in the array, FALSE otherwise. |