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 |
Tags
- JSON
- post
- file-upload
- Laravel
- Apache
- string
- Arrays
- 웹하드추천
- Ajax
- composer-php
- MySQL
- Regex
- Session
- 경영
- OOP
- 무료다운로드쿠폰
- jquery
- UTF-8
- curl
- php
- 전략
- variables
- date
- 웹하드순위
- JavaScript
- HTML
- function
- Forms
- Linux
Archives
- Today
- Total
개발! 딱 깔끔하고 센스있게!
PHP: 반복 다차원 수조 본문
나는 단지 한 부분만 돌려서 어떤 선택카드의 내용을 채워야 한다.
동영상 배열만 하는 것이 무엇이냐?
이것이 내가 시도한 것이다:
foreach ($result['videos'] as $r) { $content = ''; $content .= '' . $r['id'] . ' '; $content .= '' . $r['name'] . ' '; $content .= '' . $r['body'] . ' '; $content .= '' . $r['created'] . ' '; $content .= '' . $r['modified'] . ' '; $content .= ' '; echo $content; } Array ( [images] => Array(...) [videos] => Array ( [0] => Array ( [id] => 7 [type] => 2 [name] => My Video [body] => my_video.flv [created] => 0000-00-00 00:00:00 [modified] => 2012-04-07 00:00:00 ) [1] => Array ( [id] => 13 [type] => 2 [name] => Yet another video [body] => my_vid_man.flv [created] => 0000-00-00 00:00:00 [modified] => 0000-00-00 00:00:00 ) [2] => Array ( [id] => 25 [type] => 2 [name] => asasd [body] => asdasd [created] => 0000-00-00 00:00:00 [modified] => 0000-00-00 00:00:00 ) )
대답
'개발 스크랩 메모 > PHP' 카테고리의 다른 글
php fpm 루트 사용자로 실행 (0) | 2020.12.20 |
---|---|
php 에 posix 설치 (0) | 2020.12.20 |
어떻게 브라우저가 php 의 firefox 가 있는지 검사합니까?[사본] (0) | 2020.12.20 |
PHP 응답 함수 처리 대상 함수 (0) | 2020.12.20 |
PHP 스크립트에서 Redis 를 연결할 때 '권한이 거부' 의 의난을 해답하다 (0) | 2020.12.20 |
Comments