https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing
PHP: Strings - Manual
I've been a PHP programmer for a decade, and I've always been using the "single-quoted literal" and "period-concatenation" method of string creation. But I wanted to answer the performance question once and for all, using sufficient numbers of iterations a
www.php.net
배열 key에 quote를 쓴 상태로 접근하면 무조건 {}붙여야 한다
ex) echo "{$a['man']}" 이렇게 해야 변수가 치환됨
{}을 쓸 때는 {}와$사이에 whitespace가 있어서는 안된다. {$이렇게 딱 붙여 써야함!!
ex){ $a}==>{ man}이렇게 출력된다($a=man일때!)
그냥 위 링크 쫙 읽고 정리해야할듯!!
'코딩 > PHP' 카테고리의 다른 글
PHP생활코딩 (0) | 2020.07.02 |
---|---|
생활코딩PHP강의 (0) | 2020.06.28 |
php를 객체지향으로 만들었을 때 코드의 시작부는 어디인가? (0) | 2020.06.26 |
보안 GET, POST, hidden, 쿠키, 세션 (0) | 2020.06.01 |
세션 urlencode (0) | 2020.05.22 |