Learn PHP: Heredoc syntax

  Рет қаралды 27,907

Codecourse

Codecourse

Күн бұрын

Want more? Explore the library at www.codecourse...
Official site
www.codecourse...
Twitter
/ teamcodecourse

Пікірлер: 17
@zahwazahirahsakti4223
@zahwazahirahsakti4223 10 ай бұрын
in my php
@peristiloperis7789
@peristiloperis7789 10 жыл бұрын
wow! I've watched a lot of php videos and this is the first time I see this EOD thing. Very useful! Thanks, Alex!
@RahulSiyanwal
@RahulSiyanwal 10 жыл бұрын
Hey Alex. I am having this error "Parse error: syntax error, unexpected '
@juztinlazaro
@juztinlazaro 9 жыл бұрын
Bro, check if you have space between, echo
@RahulSiyanwal
@RahulSiyanwal 9 жыл бұрын
yep thank you it helped.. :)
@juztinlazaro
@juztinlazaro 9 жыл бұрын
welcome bro.
@WTFchuckster
@WTFchuckster 10 жыл бұрын
This series is AWESOME! Thank you so much for this. I do want to share with anyone struggling to get heredoc to work, like I was, that you MUST make sure that not only is the closing heredoc tag supposed to be on a new line but there should not be ANY spaces or anything else after the closing heredoc except the simicolon. I just struggled with this for a whole day before I came across the following bit from PHP.net: "Warning It is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs before or after the semicolon. It's also important to realize that the first character before the closing identifier must be a newline as defined by the local operating system. This is on UNIX systems, including Mac OS X. The closing delimiter must also be followed by a newline. If this rule is broken and the closing identifier is not "clean", it will not be considered a closing identifier, and PHP will continue looking for one. If a proper closing identifier is not found before the end of the current file, a parse error will result at the last line. Heredocs can not be used for initializing class properties. Since PHP 5.3, this limitation is valid only for heredocs containing variables."
@soufianefal7379
@soufianefal7379 Жыл бұрын
thanks man
@MAkshayKumar-WebDesigner
@MAkshayKumar-WebDesigner 10 жыл бұрын
I am trying it from a long time, it is now clarified... thanks a lot Phpacademy....!
@kosalasiribaddana
@kosalasiribaddana 10 жыл бұрын
Heredoc syntax, I'll use it today. Thanks Alex.
@SukhjinderKahlon
@SukhjinderKahlon 10 жыл бұрын
It is very helpful. Thanks Alex
@efenollal
@efenollal 10 жыл бұрын
As always excellent tutorials... Thank you!!
@ronniej446
@ronniej446 10 жыл бұрын
It is a lot easier for a bunch of strings :O thank u :O
@Souliee
@Souliee 10 жыл бұрын
Freaking love it! :D
@shaheenelt
@shaheenelt 10 жыл бұрын
now problems gone.
@legionoftom6154
@legionoftom6154 10 жыл бұрын
thanks so much for this, i had no idea this even existed
@McGavel1
@McGavel1 9 жыл бұрын
Cool, thanks!
Learn PHP: Variables
6:02
Codecourse
Рет қаралды 28 М.
Learn PHP: Arrays
8:12
Codecourse
Рет қаралды 49 М.
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
Learn PHP: GET and POST
10:22
Codecourse
Рет қаралды 163 М.
Learn PHP: IF statements
7:49
Codecourse
Рет қаралды 27 М.
Learn PHP: Ternary operator
6:19
Codecourse
Рет қаралды 18 М.
Learn PHP: Callbacks
6:42
Codecourse
Рет қаралды 67 М.
Learn PHP: NULL
5:58
Codecourse
Рет қаралды 19 М.
Learn PHP: Include & Require
4:10
Codecourse
Рет қаралды 28 М.
Learn PHP in 15 minutes
15:00
Jake Wright
Рет қаралды 2,7 МЛН
Learn PHP: Foreach loop
3:42
Codecourse
Рет қаралды 18 М.
Learn PHP: Variable Scope
3:10
Codecourse
Рет қаралды 23 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03