Results 1 to 3 of 3
Thread: php
Hybrid View
-
7th December 2008 01:33 #1Registered User
Join Date: Nov:2008
Location: In my house...
Posts: 6
php
: main.php class.php. class.php , main.php . ?
:
class.php
main.phpCode:<?php class PrintName{ var $name = "George"; function show_name(){ echo "Hi ".$this -> name."! How are you doing?<br />"; } function change_name($somename){ $this -> name = $somename; } } ?>
, ...Code:<?php require 'class.php'; $obj1 = new PrintName; $obj1 -> show_name(); $obj1 -> change_name ("Amanda"); $obj1 -> show_name(); ?>
!
-
7th December 2008 01:48 #2
. , , :
T.e .Code:$obj1 = new PrintName();
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
7th December 2008 03:22 #3Registered User
Join Date: Nov:2008
Location: In my house...
Posts: 6
!




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in