TypechoJoeTheme

吴同学的笔记本

统计

1.2php变量

2021-02-19
/
40 评论
/
546 阅读
/
正在检测是否收录...
02/19

变量

变量的使用

定义: 不需要用符号去定义。但是使用需要加 $
赋值
通过变量访问数据
删除 :unset(变量名)

变量命名规则

1 必须以$开始
2 字母 数字 下划线_构成,开头不能是数字
3 区分大小写
4 可以中文(不建议)

预定义变量(系统自定义的,都是数组)

加粗文字为常用
$_GET:获取所有表单以GET的方式提交的数据
$_POST:POST提交的数据都会保存在此
$_REQUEST:GET和POST提交的都会被保存
$_GLOBALS:PHP中所有全局变量
$_SERVER:服务器信息
$_SESSION:session会话数据
$_COOKIE:cookie会话数据
$_EXV:环境信息
$_FILES:用户上传的文件信息

可变变量

如果
$a='b'
$b='2'
那么
$$a=$b=2

变量传值

  1. 值传递:将变量保存的值复制一份,并将该值给另外一个变量保存(两个变量无关系)
  2. 引用传递:将变量保存值所在的内存地址传递给另外一个变量,两个变量同指一块内存(名字不一样而已)。

注意:类似指针,两个变量关联了,你变我也变

赞 · 3
评论 (40)
  1. tadalafil cialis from india 作者
    Linux · FireFox

    Hi! I simply want to give you a huge thumbs up for your excellent information you have got right here on this post.
    I will be returning to your site for more soon.

    2022-08-20 回复
  2. Preptax 作者
    Windows 7 · Google Chrome

    Cours Du Levitra stromectol australia Reviews For Best Place To Buy Nolvadex

    2022-08-22 回复
  3. Unsadly 作者
    Windows 10 · Google Chrome

    buy cialis online europe We re proud to offer international shipping services to the United States, the United Kingdom, the EU, Australia New Zealand, and Switzerland

    2022-09-02 回复
  4. ERAGOMY 作者
    Windows 10 · Google Chrome

    We are excited to be able to offer affordable options for our male patients to help with ED generic 5 mg cialis It s mostly prescribed to treat erectile dysfunction, but is also used to treat benign prostatic hyperplasia BPH

    2022-09-02 回复
  5. Agegree 作者
    Windows 10 · Google Chrome

    The risks and uncertainties also include the uncertainties discussed or identified in the public filings with the SEC and the AMF made by Sanofi, including those listed under Risk Factors and Cautionary Statement Regarding Forward-Looking Statements in Sanofi s annual report on Form 20-F for the year ended December 31, 2021 priligy dapoxetine buy The good news is that while Cialis isn t available over the counter just yet, getting a prescription for ED medication isn t difficult, nor does it require a time-consuming or potentially embarrassing visit to your primary care provider

    2022-09-04 回复
  6. NepArremn 作者
    Windows 8.1 · Google Chrome

    Our medical team can give you a prescription for sildenafil 20mg best site to buy priligy canada

    2022-09-04 回复
  7. beptomfot 作者
    Windows 10 · Google Chrome

    If a man has a sexual desire, then these means should help him generic cialis cost

    2022-09-06 回复
  8. Incinia 作者
    Windows 7 · Google Chrome

    Which is better, Sildenafil Viagra or Tadalafil Cialis cheapest cialis generic online

    2022-09-06 回复
  9. Smoonomes 作者
    Windows 7 · Google Chrome

    Wake up in the morning rock hard and ready for action buying generic cialis online safe

    2022-09-08 回复
  10. Cipspneup 作者
    Windows 7 · Google Chrome

    He disconnected the had no idea at the wires realized buy cialis generic

    2022-09-09 回复
  11. Objepebug 作者
    Windows 7 · Google Chrome

    signs clomid is working Fertil Steril.

    2022-09-11 回复
  12. pratumb 作者
    Windows 7 · Google Chrome

    A comparative prospective study of the conventional regimen with chronic low dose administration of FSH for anovulation associated with PCOS 28 involved 50 participants treated with FSH, half of them using a conventional stepwise protocol incremental dose rises of 75 IU every 5 7 days when necessary and half with a regimen of chronic low dose as described above. clomid usa shippments online Hehe, do not you understand that Scarface sneered Sure enough, he is an idiot.

    2022-09-11 回复
  13. FleloDove 作者
    Windows 10 · Google Chrome

    , West C, Torresani T, Jacobs HS. tamoxifen ovarian cancer Your plan may even be to take a month or two off from trying to conceive.

    2022-09-14 回复
  14. Cagnola 作者
    Windows 7 · Google Chrome

    nolvadex during cycle

    2022-09-14 回复
  15. domebiree 作者
    Windows 8.1 · Google Chrome

    Recommendations for the Diagnosis and Management of AHO in Pediatrics. cheap doxycycline online uk

    2022-09-17 回复
  16. Attilus 作者
    Windows 10 · Google Chrome

    prednisone and doxycycline CT of the head, neck, and maxillofacial bones.

    2022-09-18 回复
  17. wobka slots promo codes 作者
    MacOS · Safari

    free slots casino world quick hits slots slots gratis https://onlinecasinohero.com/free-lucky

    2022-09-25 回复
  18. write my biology paper 作者
    Windows 10 · Google Chrome

    buy a philosophy paper custom paper writing service
    website that will write a paper for you https://papercranewritingservices.com/

    2022-10-01 回复
  19. pay for paper 作者
    MacOS · Google Chrome

    someone to write my paper write my paper in apa format buy cheap
    papers https://paperwritinghq.com/

    2022-10-01 回复
  20. paper writers for college 作者
    Windows 10 · MicroSoft Edge

    buy college paper help with writing a paper write my paper apa style https://researchpaperswriting.org/

    2022-10-02 回复
  21. custom paper writing services 作者
    Linux · FireFox

    where to buy college papers order papers online buy paper online https://ypaywallpapers.com/

    2022-10-04 回复
  22. https://writepapersformoney.com 作者
    MacOS · FireFox

    pay to do my paper write my paper for cheap best custom papers https://writepapersformoney.com/

    2022-10-04 回复
  23. help in writing paper 作者
    Linux · FireFox

    help with college paper writing do my paper for money pay to write
    papers https://sociologypapershelp.com/

    2022-10-04 回复
  24. college paper ghost writer 作者
    Windows 10 · FireFox

    write my thesis paper buy college paper online online paper writing services https://doyourpapersonline.com/

    2022-10-06 回复
  25. hawExpach 作者
    Windows 8 · Google Chrome

    Morley had moved in with them after being hit by a car while riding his bike in Boston stromectol tablets buy

    2022-10-29 回复
  26. Все сезон и серии 作者
    Windows 10 · Google Chrome

    Все сезон и серии

    2022-10-31 回复
  27. Dwelealew 作者
    Windows 10 · Google Chrome

    We explored the role of microRNAs miRNAs in acquiring resistance to tamoxifen, a drug successfully used to treat women with estrogen receptor positive breast cancer stromectol online Testicular hyperstimulation syndrome a case of functional gonadotropinoma

    2022-10-31 回复
  28. Hodserb 作者
    Windows 10 · Google Chrome

    drone strikes and Washington s complaints about the ties of the Pakistani intelligence service to militant groups active in Afghanistan buy clomiphene Derek, USA 2022 06 27 02 14 39

    2022-11-18 回复
  29. Enjoype 作者
    Windows 10 · Google Chrome

    2 million euros and Lyon 12 can i drink with doxycycline Genetically encoded calcium indicator GECI techniques have been applied to study the functional organization of the marmoset cortex

    2022-11-19 回复
  30. putride 作者
    Windows 8 · Google Chrome

    Cardiotoxicities of Breast Cancer Treatment stromectol comprar

    2022-11-21 回复
  31. biotrug 作者
    Windows 10 · Google Chrome

    The rapidly increasing evidence of research and lack of therapeutic options show the significance of investigating effective therapeutic strategies for the treatment of TNBC lasix for pulmonary edema In analyses involving 9, 941 of these women without a prior cancer history, hip BMD was significantly inversely related to breast cancer risk, a finding independent of the Gail breast cancer risk score

    2022-11-22 回复
  32. coursework columbia 作者
    MacOS · FireFox

    coursework in area of expertise coursework geeks
    coursework resources https://writingacoursework.com/

    2022-11-23 回复
  33. coursework for psychology degree 作者
    Linux · FireFox

    coursework project coursework layout coursework at a college or
    university https://courseworkinfotest.com/

    2022-11-23 回复
  34. coursework service 作者
    MacOS · Google Chrome

    coursework spelling coursework writers coursework
    writing uk https://courseworkdomau.com/

    2022-11-24 回复
  35. custom coursework writing service 作者
    Windows 10 · Google Chrome

    coursework in a sentence coursework help uk coursework king's college https://courseworkninja.com/

    2022-11-26 回复
  36. Pifigl 作者
    Windows 8 · Google Chrome

    brand levofloxacin levofloxacin 250mg drug

    2022-11-26 回复
  37. courseware mit 作者
    Linux · FireFox

    coursework for bcaba coursework download free coursework degree meaning https://teachingcoursework.com/

    2022-11-26 回复
  38. coursework writing service uk 作者
    MacOS · Google Chrome

    jerusalem coursework coursework resume example coursework for nursing https://buycoursework.org/

    2022-11-27 回复
  39. narrative coursework examples 作者
    Windows 10 · MicroSoft Edge

    coursework references coursework vs thesis coursework spelling https://coursework-expert.com/

    2022-11-27 回复
  40. coursework master degree 作者
    Windows 10 · MicroSoft Edge

    do my coursework for me coursework columbia coursework masters vs
    research masters https://mycourseworkhelp.net/

    2022-11-27 回复