Skip to content

Instantly share code, notes, and snippets.

View ombak's full-sized avatar
🎯
Focusing

Sukma Saputra ombak

🎯
Focusing
View GitHub Profile
#
# AllowOverride controls what directives may be placed in .htaccess files.

# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit

#
AllowOverride All
#
# AllowOverride controls what directives may be placed in .htaccess files.

# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit

#
AllowOverride None
Ini adalah method __construct dari class "ClassSaya".
Fatal error: Call to private method ClassSaya::getProperty() from context 'ClassLain' in /Library/WebServer/Documents/oop_latihan/latihan.php on line 38
Ini adalah method __construct dari class "ClassSaya".
Catchable fatal error: Object of class ClassSaya could not be converted to string in /Library/WebServer/Documents/oop_latihan/latihan.php on line 31
<?php
/**
* disini kita menjelaskan class
* dan semua penjelasan yang dapat membantu
* untuk mengetahui kegunaan class ini
*
* @author Sukma Saputra swsaputra@email.com
* @copyright 2012 kotakku studio and lab
* @license http://www.php.net/license/3_01.txt PHP License 3.01
*/
<?php
/* class pertama
*/
class ClassSaya {
public $prop1 = 'Saya properti pertama!';
public static count = 0; //...properties static
/* method __construct
<?php
/* class pertama
*/
class ClassSaya {
public $prop1 = 'Saya properti pertama!';
/* method __construct
*/
public function __construct() {
<?php
/* class pertama
*/
class ClassSaya {
public $prop1 = 'Saya properti pertama!';
/* method __construct
*/
public function __construct() {
<?php
/* class pertama
*/
class ClassSaya {
public $prop1 = 'Saya properti pertama!';
/* method __construct
*/
public function __construct() {
<?php
/* class pertama
*/
class ClassSaya {
//...properties
public $prop1 = 'Saya properti pertama!';
/* method __construct
*/
public function __construct() {