课程......为什么? [英] classes... why?

查看:58
本文介绍了课程......为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我会在php中使用一个类,我如何在php中使用一个类?

why would i use a class in php, and how do i use a class in php?

推荐答案

2003年8月12日星期二17 :34:19 +1000,Sticks写道:
On Tue, 12 Aug 2003 17:34:19 +1000, Sticks wrote:
为什么我会在php中使用一个类,我如何在php中使用一个类?
why would i use a class in php, and how do i use a class in php?




简单化:类使得编写可重用更容易代码


有关php中类的更多信息...阅读手册(有一些

关于如何使用它们的小例子)

还搜索谷歌的OO和PHP或OOPS和PHP(面向对象)



Simplistic: Classes make it easier to write "reusable" code

For more information about classes in php... read the manual (there are some
little examples on how to use them)
also search google for OO and php or OOPS and php (Object Oriented)


-----开始PGP签名消息-----

虽然在周二,2003年8月12日10:32:40 +0200左右闲逛,Warstar

< wa *****@NSA.com>令人惊讶地设法生成以下内容:

他们的Etch-A-Sketch:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Tue, 12 Aug 2003 10:32:40 +0200, Warstar
<wa*****@NSA.com> amazingly managed to produce the following with
their Etch-A-Sketch:
为什么我会在php中使用一个类,我如何在php中使用一个类?
why would i use a class in php, and how do i use a class in php?


因为它很棒你可以获得更易读的代码和更好的安全性。


because it is great u can get more readable code and better
security.



如何使用类比其他任何东西更安全吗?


<?php

class foo {

功能栏(


How does using classes make things more secure than anything else?

<?php
class foo {
function bar(


string){

system(
string) {
system(


这篇关于课程......为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆