반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Jenkins
- chartjs
- codepipeline
- java bigdecimal
- Python
- codedeploy
- Flux
- Kafka
- or some instances in your deployment group are experiencing problems.
- SQL
- aws
- VPN
- codebuild
- docker
- 도커
- kubeflow
- IntelliJ
- JavaScript
- PostgreSQL
- COALESCE
- Spring
- AWS CI/CD 구축하기
- redis
- bootstrap
- chart.js
- Spring Error
- node
- aws cicd
- Airflow
- codedeploy error
Archives
- Today
- Total
Small Asteroid Blog
[php] What does this mean in PHP: -> or => 본문
728x90
누군가에겐 이런걸 왜 몰라? 할 수 있지만
나는 문법 하나하나 사용되는 뜻을 알고 사용하고 싶어서 찾아보았다.
->
(Object Operator)
인스턴스에서 메서드를 호출하거나
객체 범위 내에서 객체에 접근하기 위해서 사용한다.
class a{
public function getData(){
$variable = 'What does this mean in PHP: -> or =>';
return $variable;
}
}
$bar = new a;
$bar->getData();
=>
(Double Arrow Operator)
배열의 키, 값을 할당할 때 사용한다.
$Result = array(
'result1' => '결과1',
'result2' => '결과2',
'result3' => '결과3'
);
https://stackoverflow.com/questions/3037526/where-do-we-use-the-object-operator-in-php
https://stackoverflow.com/questions/14037290/what-does-this-mean-in-php-or
728x90
반응형
'백엔드' 카테고리의 다른 글
구독 서비스 (0) | 2022.07.13 |
---|---|
[php] result_array() and row_array() (0) | 2022.07.12 |
[php] PHP Warning: Illegal string offset ' ' in (0) | 2022.07.07 |
[php] Message: Cannot modify header information - headers already sent by (output started at ) 에러 해결 (2) | 2022.07.06 |
[window] WSL2 Ubuntu 구동 시 Error: 0x800701bc WSL 2 (0) | 2022.04.28 |