What are the differences between public, private, protected,
static, transient, final and volatile?
Answers were Sorted based on User's Feedback
Answer / nikunj
Public : access anyware in script
Protected: access only same class and access inherited class
Private: access only in same class
Final: restrict overriding with child class
|Is This Answer Correct ?||59 Yes||3 No|
Answer / naresh
in object by default all variables are presistent. so some
time we want to avoid that variables means we use transient
for that variable.
|Is This Answer Correct ?||5 Yes||8 No|
Answer / bharanikumar
can u plz give me more informa for protected
|Is This Answer Correct ?||2 Yes||11 No|
What is a path Traversal?
What is the use of isset() in php?
What is use of header() function in php?
What is csrf cookie?
What is the current stable version of php?
Does php class need constructor?
hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.
How can you parse files that were not ending with .php by using Apache?
Tell me how to initiate a session in php?
How many keywords are there in php?
Tell me how can we define a variable accessible in functions of a php script?
Tell me how can we check the value of a given variable is alphanumeric?