Jump to content

Search the Community

Showing results for tags 'extends'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 2 results

  1. This code works without problems: <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceB; class B {} But why the following code cause Fatal error: Class 'NamespaceB\B' not found in ...file? <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceB; class B extends \NamespaceC\C {} namespace NamespaceC; class C {} And this code also works without problems: <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceC; class C {} namespace NamespaceB; class B extends \NamespaceC\C {} Without any namespace, also Fatal error: Class 'B' not found in ...file: <?php class A extends B {} class B extends C {} class C {} Works without problems: <?php class A extends B {} class B {} And yes everything is in the same PHP file....
  2. Hello, it's my first time in this forum, I hope somebody could help me with my bug I have an extended class called 'Show' from 'Database' has a method called 'get_time'.. and it could be with arguments 'm' for minutes or 'h' for hours the class works as expected in any empty file.php but causes problem with the form here's the method class Show extends Database { //other methods above here public static function get_time ($arg=null) { $days = self::retreive_days(); // $days is supposed to retreive this string "dai-3:20 sun-1:30 tue-5:1 wed-1:3" $weekDays = array( 'dai', 'sat', 'sun', 'mon', 'tue', 'wed', 'thu', 'fri' ); foreach ($days as $key => $value) { $dayz[] = substr($days[$key], 0, 3); } $random_num = 0; foreach ($weekDays as $key => $value) { $myTime[$key] = null; foreach ($dayz as $key2 => $value) { if ($weekDays[$key] == $dayz[$key2]) { $myTime[$key] = substr( $days[$random_num], 4, strlen($days[$random_num]) ); $random_num++; } } } if ($arg=='m') { foreach ($myTime as $key => $value) { $seperator = strpos($myTime[$key], ':'); $results[] = substr($myTime[$key], $seperator+1, strlen($myTime[$key])); } return $results; } elseif ($arg=='h') { foreach ($myTime as $key => $value) { $seperator = strpos($myTime[$key], ':'); $results[] = substr($myTime[$key], 0, $seperator); } return $results; } else { return $myTime; } } } my problem is when I call the call it hides part of the form without even show me any php errors here's snapshot for the normal and after calling the calls.. notice the end of v-scroll
×
×
  • 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.