基本知识
- <?php
- echo "1 , php.ini中把display_errors=On才显示错误位置<br>";
- echo "2 ,习惯使用echo和print打印<br>";
- echo "wamp安装完后不能使用是因为安装过iis,是apache无法启动监听,停止iis就可以了";
- phpinfo();//每行语句使用分号";"结束
- /*
- php.ini中把display_errors=On才显示错误位置
- 习惯使用echo和print打印
- */
- /*
- 多行注释
- */
- //单行注释
- #单行注释
- ?>
简单变量和简单数组知识
1 ,htm和php混编
2, 一个语句以 ";" (分号结束)
3,如何定义一个变量,和变量使用
php数据运算类型
四种标量变量
boolean、integer、float、double、string
两种复合类型
array、object
- <?php
- echo "<br>";
- echo "如何定义一个变量,和变量使用<br>";
- $a=9;
- echo "$a";
- echo "<br>";
- $b1=true;$b2=FALSE;
- $f=1.26;
- $s="字符串类型";
- echo "int".$a."boolean".$b1."float".$f."string".$s ;
- $arr=array(1,2,3,4,5);
- $arr2=array("id"=>100,"title"=>"this is new" );
- $arr3=array(array(1,2,3,4),array(5,6));
- echo "<br>";
- echo $arr;
- print_r( $arr2);
- echo "<br>";
- echo $arr3[0][3].$arr3[1][1];
- echo $arr2['id'];
- ?>
stdClass类是PHP的一个内部保留类,初始时没有成员变量也没成员方法,所有的魔术方法都被设置为NULL,可以使用其传递变量参数,但是没有可以调用的方法,stdClass类可以被继承,只是这样做没有什么意义.
该类是PHP的保留类,并不是所有类的基类.
- <?php
- class foo {}
- $bar = new foo();
- echo $bar instanceof stdClass?'yes':'no';
- //output:no
- ?>
另外一个例子:
- <?php
- // CTest does not derive from stdClass
- class CTest {
- public $property1;
- }
- $t = new CTest;
- var_dump($t instanceof stdClass); // false
- var_dump(is_subclass_of($t, 'stdClass')); // false
- echo get_class($t) . "n"; // 'CTest'
- echo get_parent_class($t) . "n"; // false (no parent)
- ?>
任何用(object)强制转换都会得到一个stdClass的实例.
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » php基础入门知识笔记
波比源码 » php基础入门知识笔记
levofloxacin 250mg cost order levaquin 500mg
buy generic avodart dutasteride pills ondansetron 8mg pills
buy generic spironolactone 25mg purchase fluconazole diflucan buy online
buy sildenafil 100mg without prescription order nolvadex 20mg online robaxin medication
order sildenafil 100mg order generic estrace 2mg purchase estradiol online
lamotrigine order order minipress 2mg without prescription buy tretinoin cream without prescription
buy tadalis 10mg generic purchase tadalafil pill order voltaren 50mg
buy isotretinoin 40mg isotretinoin 40mg over the counter purchase zithromax online
indomethacin pills order suprax 200mg trimox 250mg generic
purchase anastrozole anastrozole uk viagra 50mg for sale
acheter gГ©nГ©rique tadalafil en france acheter 25mg gГ©nГ©rique viagra en france acheter gГ©nГ©rique sildenafil en france
deltasone 10mg over the counter buy cialis retail viagra 100mg cheap
cialis 10mg kaufen generika original viagra 200mg rezeptfrei sicher kaufen sildenafil 200mg generika rezeptfrei kaufen
doxycycline 200mg brand oral furosemide 100mg furosemide 40mg oral
altace online order buy avapro 300mg sale buy azelastine 10ml
purchase clonidine pill buy generic antivert 25 mg buy spiriva 9 mcg for sale
brand hytrin 1mg hytrin 1mg cost sulfasalazine 500mg oral
purchase alendronate generic ibuprofen 400mg us buy pepcid 40mg generic
purchase imdur pill buy isosorbide for sale generic telmisartan 20mg
buy bupropion 150 mg pill order zyrtec for sale quetiapine 100mg brand
imuran online viagra 200mg price buy viagra pills
tadalafil 20mg pill brand viagra online without prescription sildenafil 100mg cheap
cialis 10mg brand cialis for sale buy amantadine 100mg pill
order avlosulfon avlosulfon oral perindopril 8mg ca
provigil sale oral provigil stromectol cost in usa
order accutane generic accutane price deltasone for sale online
piracetam 800 mg without prescription viagra pills 25mg sildenafil india
order zithromax online cheap order prednisolone online cheap buy generic gabapentin
order cialis sale order cialis 10mg sildenafil cheap
buy lasix generic buy plaquenil for sale purchase hydroxychloroquine for sale
buy cialis 5mg pills buy betamethasone creams anafranil price
chloroquine oral baricitinib 2mg cheap buy generic olumiant 4mg
sporanox us tinidazole 300mg brand order tinidazole 300mg online
metformin 500mg us buy tadalafil 40mg sale cialis 40mg cost
purchase norvasc online cialis brand where to buy cialis
clozaril 50mg drug clozapine online buy buy decadron 0,5 mg pill
omeprazole 10mg oral essays buy slot machine games
metoprolol 100mg pills vardenafil 20mg tablet levitra 20mg oral
order aristocort 4mg generic generic loratadine 10mg buy desloratadine without prescription
buy dapoxetine online dapoxetine order online order synthroid 150mcg without prescription
buy generic tadalafil 20mg sildenafil 20 mg sildenafil 25 mg
order orlistat pill orlistat medication buy zovirax 800mg sale
purchase cialis pill order inderal 20mg pill buy plavix generic
methotrexate 10mg drug order methotrexate 2.5mg online metoclopramide online order
order domperidone pill order motilium 10mg without prescription flexeril ca
oral cozaar 50mg topamax 200mg ca topiramate 100mg usa
buy baclofen 10mg sale buy baclofen without prescription toradol online order
buy generic imitrex 25mg order levofloxacin pills avodart 0.5mg drug
buy zantac 150mg celebrex 200mg us celebrex for sale online
buy flomax 0.4mg generic aldactone 25mg without prescription aldactone pill
keflex pills order erythromycin 250mg for sale erythromycin online
order cialis pill sildenafil 25 mg viagra 100mg price
cheap sildenafil 100mg buy viagra 50mg pills order tadalafil 20mg pills
ceftin order online ceftin 500mg ca order methocarbamol 500mg sale
sports gambling order cialis 20mg pills cialis 10mg drug
online thesis writing pay to do my assignment ivermectin 3 mg without prescription
buy prednisone 5mg online cheap buy amoxil 250mg pill order amoxicillin 250mg generic
buy prednisone without prescription deltasone 5mg ca mebendazole without prescription