top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What kind of Inheritance does PHP support?

+2 votes
509 views
What kind of Inheritance does PHP support?
posted May 12, 2014 by Rahul Mahajan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

PHP supports single-level and multi-level inheritance.
In PHP A class can be inherited from only one parent, but a class may have multiple children.

answer May 12, 2014 by anonymous
0 votes

PHP supports single-level and multi-level inheritance.
In PHP A class can be inherited from only one parent, but a class may have multiple children. Read more at: http://tech.queryhome.com/43496/what-kind-of-inheritance-does-php-support#.U3ZrC3bm0xw

answer May 16, 2014 by Vrije Mani Upadhyay
Similar Questions
0 votes

I've recently discovered that a format such as %'.2f" results in this:

php -r "printf("%'.2f", 23232323.237);"
23232323.237000

I know that number_format() will do the same, but I am given the format spec as an interface, I would need to try to parse it and then decide whether to use printf() or number_format().

+2 votes

I have an app with users in one timezone with the date / time stored in their location. Now there are more users in more locations and I would like to support them - ideally without changing to historical data.

At the moment the app uses a time offset field to allow two people to see one note expressed in their timezone.

There are two use cases for this one is the free/busy calendar, the other is the meeting invite ICS file.

At the moment I would like to support ICS which are GMT based.

My guess is that:

  • Assign each user to their own timezone
  • I take the diary row ($start_date, $start_time) and convert it to a GMT timestamp
  • Make the ICS file

I am keen to hear of better solutions or ideas.

+2 votes

Can someone give me an understanding of how the .ini settings are located and combined? I am under the impression that there is a full settings .ini file somewhere up high in my host's server tree and that
any settings I create in .ini files in each of my domain folders are appended/updated against the 'main' ini settings to give me a 'current' group of php.ini settings.

What I'm looking to find out is does an ini setting established in a test subdomain of my site affect those ini settings outside of my test subdomain?

...