Home / Learn / PHP Basics / PHP Variables

PHP Variables

PHP variables is defined with the dollar sign and it can store all all data types.

3 years ago

151

Code Example

<?php

$name = 'PostSrc';

$age = 2;

$programmingBlog = true;

$contentTypes = ['Larave', 'PHP', 'VueJS'];
                    

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