Home / Learn / PHP Basics / PHP Comments

PHP Comments

Learn how to define comments in PHP to document your code.

3 years ago

258

Code Example

<?php

// Single-line comments

# Alternative way to define single line comments

/*
	Multi-line comments
	It can span into multiple lines
*/
                    

Code Snippets

Collection of Laravel, AlpineJS, VueJS, Tailwind CSS, Flutter snippets and more. New snippets added every day.
View Snippets

Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your web projects
View Components

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this