Results 1 to 3 of 3

Thread: PHP and MySQLi Class 3

  1. #1
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

    Lightbulb PHP and MySQLi Class 3

    Assalam o aliekum dosto... ye PHP or MySQLi ki 3rd class hy or es lecture may hum programming languages k ek bht important code ki baat karein gay or wo hy Comments.
    Comments wo human read able line hoti hy jo hum apny liye ya ksi or code parhny walay k lye likhty hain.. jesay misal k tor per hum koi function likh rahy hain to hum us say pehly ye likhna chahty hon k ye function kia karta hy.. to hum comment de den gay... es video may sab details say btaya geya hy..


    ziada tar programming languages may comments ko 2 tarah say likha jaa sakta hy... single line comment yani k ek he line ka comment ya multi line comment jo ek say ziada lines may chalta hy...

    comments likhny ka taria---Single Line:
    single line comment likhny k lye hum double forward slash lgaty hain or usky bad apna comment likh dete hain.. misal k tor par:
    // this is a comment blah blah blah

    single line comments ko ziada tar ksi code ki line ya function kia karta hy wo btany k lye use kia jata hy.. yahn may ye btata chalu k jb PHP double forward slash dekhti hy to usky baad anay walay tmam characters ko ignore kar k directly next line may chali jati ho phr chahy wo koi php ka code ya function he kyu na ho. To aap esko code ki testing k lye bhi use kar sakty hain

    Multi-line comment: Multi-line comment likhny k lye hum ek forward slash or ek asterisk lgaty hain jo humary comment k start ko btata hy..
    /*
    ab es asterisk yani k star k sign k bad jo bhi aye ga to PHP usay ignore karta chala jaye ga jb php ko ek or asterisk or forward slash ka combination nahi mil jata yani k
    */
    to ek multi-line comment es trah likha jata hy
    /*
    this is
    a multi line
    comment
    */


    multi line comment bht faiday ki cheese hain enko hum apna code test karty huye bhi check kar sakty hain yani code ki kuch lines comment kardi taa k ye pta kar sakein k error kahn say aa rha hy..
    Last edited by ali_num13; 15th March 2016 at 01:50 PM.

  2. #2
    GujratMardan's Avatar
    GujratMardan is offline Advance Member
    Last Online
    Yesterday @ 11:40 AM
    Join Date
    26 Jun 2011
    Location
    Mardan
    Age
    29
    Gender
    Male
    Posts
    958
    Threads
    4
    Credits
    285
    Thanked
    59

    Default

    Nice sharing

  3. The Following User Says Thank You to GujratMardan For This Useful Post:

    ali_num13 (14th March 2016)

  4. #3
    Umarkhan147's Avatar
    Umarkhan147 is offline Advance Member
    Last Online
    6th October 2017 @ 09:59 AM
    Join Date
    22 Dec 2015
    Location
    Faisalabad
    Age
    22
    Gender
    Male
    Posts
    4,869
    Threads
    231
    Credits
    31,347
    Thanked
    298

    Default

    Nice Sharing

Similar Threads

  1. PHP and MySQLi Class 2
    By ali_num13 in forum PHP MySQL
    Replies: 2
    Last Post: 3rd October 2017, 01:18 PM
  2. Replies: 51
    Last Post: 30th October 2016, 09:22 PM
  3. PHP and MySQLi Class 1
    By ali_num13 in forum PHP MySQL
    Replies: 8
    Last Post: 29th May 2016, 03:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •