Basic cheat sheet by language (Ruby, PHP)

Ruby

1 2
Calling a character put or p,print
One line comment out #Comment out with sharp
Multi-line comment out #=bigin #=end

PHP When developing locally, DL of MAMP or XAMPP is required. Finally; don't forget!

1 2
Calling a character echo "The string you want to call"
One line comment out //2 slashes
Multi-line comment out /Slash+rice/
embedded
Variable name $variables_name1
Line breaks when embedding echo "String< br >" (* No space is required between br and parentheses)
When embedding variables / constants in the character string called by echo echo "{$name}String";

Recommended Posts

Basic cheat sheet by language (Ruby, PHP)
Ruby basic terms
JMeter cheat sheet
Kotlin cheat sheet
[Docker cheat sheet]
Memorandum (Ruby: Basic grammar: Use by naming the process)
Mockito + PowerMock cheat sheet
Ruby learning points (basic)
Eclipse Collections cheat sheet
Rails Tutorial cheat sheet
ruby basic syntax memo
SCSS notation cheat sheet
Oreshiki docker-compose cheat sheet
ruby memorandum (basic edition)
Docker command cheat sheet