in_array (mixed $needle, array $haystack) : 배열에서 첫번째 파라미터 벨류 값이 있는지 불린 반환 array_unique(array $array) : 배열중에서 중복되는 벨류값을 제거 array_search(mixed $needle, array $haystack) : 배열중에서 일치하는 벨류값을 찾아서 해당 인덱스 반환 array_reverse(array $array, bool $preserve_keys = false) : 배열안에 요소들의 순서를 뒤바꿈, 두번째 파라미터에 true를 넣으면 원본 인덱스를 유지할 수 있음 array_map(callable $callback, array $array1 [,array $...]) : 파라미터 배열의 요소 하나하나를 콜백함수에..
Boolean false; Integer 0; Float 0.0; String '0' or "0"; An empty string (i.e. '' or ""); An empty array (i.e. [] or array()); null; SimpleXML objects created from empty tags. Note that the strings "00", "0.0", "\0", and "false" all evaluate to boolean truewhich is different from string '0' or boolean false.
문자열 정수 실수 논리값 배열 객체 NULL 리소스
Interpreter - Easy debugging (실행할때 하나하나씩 읽기 때문에 디버깅 편함) - Slower Interpreters have all of the defined functions in the interpreter itself and then when you invoke a function or list of instructions it reads each command one after the other. Converting as it goes along; however this is slow as it looks at each line and converts them one by one. It’s constantly looking back at the script, then exe..
AOT와 JIT는 컴파일 방식이 다르다 JIT 컴파일 (Just-in-time 즉시) JIT 컴파일(just-in-time compilation) 또는 동적 번역(dynamic translation)은 프로그램을 실제 실행하는 시점에 기계어로 번역하는 컴파일 기법이다. 이 기법은 프로그램의 실행 속도를 빠르게 하기 위해 사용된다. 전통적인 입장에서 컴퓨터 프로그램을 만드는 방법은 두 가지가 있는데, 인터프리트 방식과 정적 컴파일 방식으로 나눌 수 있다. 이 중 인터프리트 방식은 실행 중 프로그래밍 언어를 읽어가면서 해당 기능에 대응하는 기계어 코드를 실행하며, 반면 정적 컴파일은 실행하기 전에 프로그램 코드를 기계어로 번역한다. JIT 컴파일러는 두 가지의 방식을 혼합한 방식으로 생각할 수 있는데, 실행..