They make programming much easier because you don’t have to re-use long code snippets. Writing PHP Functionsįunctions are shortcuts for commonly used chunks of code. As you will learn further on, that doesn’t apply to everything. That means that when you write ECHO, EcHo, eCHO or any other variation, they will continue to work. The only difference is that the former has no return value and can take several parameters, while the latter has a return value of 1 and can only take one argument.Īn important note: Like all other PHP commands, functions echo and print are not case sensitive. The two commands echo and print are pretty much the same. For example, the title of this blog post might be displayed on a page like this: PHP Cheat Sheet" In PHP, data is commonly output using echo or print. Use it to make something cool, have fun, and share what you've learned with others. This theme, like WordPress, is licensed under the GPL. Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready License: GNU General Public License v2 or later Our default theme for 2017 works great in many languages, for any abilities, and on any device. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. */ - Everything between /* and */ is not executed, also works across several linesĪ common example of the use of comments is WordPress theme headers: /*ĭescription: Twenty Seventeen brings your site to life with header video and immersive featured images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |