how many types of inheritance is there in php? name there?
Answers were Sorted based on User's Feedback
Answer / rashmi
php supports single and multilevel inheritance basically
multiple inheritance supported by c++ only.
| Is This Answer Correct ? | 44 Yes | 3 No |
Answer / test
PHP supports three type of inheritence
1) Simple
2)multilevel
3)hirachical
| Is This Answer Correct ? | 34 Yes | 10 No |
Answer / dodhiya imran
php supports
1.single and
2. multilevel inheritance basically
multiple inheritance supported by c++ only.
| Is This Answer Correct ? | 15 Yes | 5 No |
Answer / abbas husain
there are single,multilevel,and Hirrerchical inheritance
supported by php
| Is This Answer Correct ? | 14 Yes | 4 No |
Answer / krishnendu misra
Normaly Three types of inheritance in php
1)single
2)multilavel
4)Hirrerchical
but we can do multiple inheritance in php using interface.
| Is This Answer Correct ? | 8 Yes | 6 No |
Answer / saravanan
single level,hirarchical level,and multi level
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / dillip
There are four types of inheritance.
1.Single
2.Multilevel
3.Interface
4.Hirrerchical
| Is This Answer Correct ? | 12 Yes | 22 No |
Answer / madhu
There are three types of inheritence
1)single.
2)multiple
3)Multilevel
like as a c++
| Is This Answer Correct ? | 3 Yes | 15 No |
Answer / jitendra k jain
There are three types of inheritance in php1.single,2.multiple,3.multi level
| Is This Answer Correct ? | 15 Yes | 52 No |
What is the apache?
What is htaccess? Why do we use this and where?
just explain MYSql ISAM and InnoDB functions. and what is the diffrent between both. and which is the better in both.
Starting or restarting a computer is called
What types images that php supports?
What is filter_var?
Is salary fixed or variable cost?
4 down vote favorite share [g+] share [fb] share [tw] I am developing my site using server side sessions using redis as backend for saving the session. Now the issue which is bothering me is of user leaving the website without logging out. I mean user simply closes the browser which causes the cookie to be deleted. Now session of that user still exists on the server and will not be used again as new login requires creating a new session due to security reasons. To avoid the case where hacker steals the old cookie and use it after user login again with same old session id. In essence user leaves the website without explicitly logging out and his session will be deleted after certain time limit of inaccessibility. I am thinking time limit of 30-60 minutes. Also with every new request from user his cookie will also be updated to keep track of when the user last time accessed the site. But nowadays, people let site remain open for long time without accessing it. For example users open facebook and gmail in new tabs and forget about them for 2-3 hours and still they are not asked to login again. Is letting a 2-3 hours old cooke access the session secure? My concern is someone steals user cookie and use it 2-3 hours later. Thinking on this topic has also forced me to question how facebook manages security if user can use a session where they are not accessing it for long periods of time and still they remain logged in. Or is it not secure for me to keep logged in when am not accessing the site session for longer period of time? It can be the case also there is some pinging mechanism using which sites keep track of user having their site open in a browser and when browser closes they are notified and can work accordingly. My website is a social network and needs all those security and usage features which a social network may need. I am new to web security and web development in general and may be the case where my above questions may seem a little basic. If you feel that is the case kindly point to some good reference where I can read and find answers to my question.
Can we learn php without html?
Tell me what are sql injections, how do you prevent them and what are the best practices?
How does session work in php?
How to remove a file?