The Artima Developer Community
Sponsored Link •

PHP Buzz Forum
defining functions inside a constructor

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Kimsal

Posts: 124
Nickname: mgkimsal
Registered: May, 2008

Michael Kimsal is a senior web technologist and host of WebDevRadio.com
defining functions inside a constructor Posted: Jul 26, 2016 11:01 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Michael Kimsal.
Original Post: defining functions inside a constructor
Feed Title: Michael Kimsal's weblog
Feed URL: http://michaelkimsal.com/blog/category/php/feed/
Feed Description: Web development and new media observations
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Michael Kimsal
Latest Posts From Michael Kimsal's weblog

Advertisement
Recently came across some code on a project that looks like this (code changed – it wasn’t this simple!) 1 2 3 4 5 6 7 8 <?php class foo { public function __construct() { function foobar() { echo 'abc'; } } } $c = new foo(); foobar(); It was a bit more convoluted than […]

Read: defining functions inside a constructor

Topic: Testing iPad Pro Workflow Previous Topic   Next Topic Topic: Sometimes the smart decision sucks

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use