Skip to content

Instantly share code, notes, and snippets.

@suziewong
Created December 25, 2012 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suziewong/4371641 to your computer and use it in GitHub Desktop.
Save suziewong/4371641 to your computer and use it in GitHub Desktop.
echo print print_r的区别?

Echo是PHP语句,print与print_r是函数,语句没有返回值,函数可以有返回值。

Print只能打印简单类型变量的值。

Print_r可以打印复杂变量值(数组或对象)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment