Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   in php whats the difference between the 3 (https://www.warriorforum.com/programming/1080169-php-whats-difference-between-3-a.html)

TAHERSYED34 3rd June 2015 11:58 AM

in php whats the difference between the 3
 
get_sidebar( 'content' ); it has 'content' between parenthesis



get_sidebar(); this one has nothing



<?php get_sidebar( $name ); ?> this one has a $ sign without the ' tags inbetween within parenthesis.



thanks

artemis360 3rd June 2015 12:43 PM

Re: in php whats the difference between the 3
 
' ' - is the static value
$ - is a variable

Read up on this to get a better idea:

operators - Reference - What does this symbol mean in PHP? - Stack Overflow


All times are GMT -6. The time now is 01:18 PM.