0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

言語別基本チートシート(Ruby, PHP)

Last updated at Posted at 2020-11-03

#Ruby

1 2
文字の呼び出し putもしくはp,print
一行コメントアウト #シャープでコメントアウト
複数行コメントアウト #=bigin #=end

#PHP
ローカルで開発する場合は、MAMPかXAMPPのDL必須。
最後に;を忘れずに!

1 2
文字の呼び出し echo "呼び出したい文字列"
一行コメントアウト //スラッシュ2本
複数行コメントアウト /* スラッシュ+コメ */
埋め込み
変数名 $variables_name1
埋め込み時の改行 echo "文字列< br >" (※brとカッコの間に空白は不要)
echoで呼び出した文字列の中に変数・定数を埋め込む時 echo "{$name} 文字列";
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?