Jump to content

PHP Questions!!!


joshi_v

Recommended Posts

Hi to all!


Any one of you could answer my questinos please!

1. How it will work if i wrote $$test=0; or what '$$' means in PHP?
2. What is 'encapsulation'? I know it is in OOP concepts. Is there any special meaning for it in PHP?
3. Suggest me how to do an admin module for a site. How to seperate it from user normal files.

Thanks in advance!
Joshi.
Link to comment
https://forums.phpfreaks.com/topic/30455-php-questions/
Share on other sites

LOL at thorpe :)

1. $$test = "0"; means you've assigned the variable $test as another variable. Example:

[code]<?php
$test = "bob";
?>[/code]
is the same as
[code]<?php
$holder = "user";
$$holder = "bob";
?>[/code]

2. to 'encapsulate' means to enclose a string in quotes, whether single or double, and/or brackets, etc.
3. check the tutorials section
Link to comment
https://forums.phpfreaks.com/topic/30455-php-questions/#findComment-140252
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.