Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. What's the meaning of & sign here ?

What's the meaning of & sign here ?

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
question
5 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammad Dayyan
    wrote on last edited by
    #1

    Hello all. I saw somewhere this function: function char_cube3d(&$bitmaps, $letter) { ... } What's the meaning of & sign ? Thank you.

    L 1 Reply Last reply
    0
    • M Mohammad Dayyan

      Hello all. I saw somewhere this function: function char_cube3d(&$bitmaps, $letter) { ... } What's the meaning of & sign ? Thank you.

      L Offline
      L Offline
      luayessa
      wrote on last edited by
      #2

      The parameter will be passed to the function by Reference. (the second parameter will be passed by Value)

      M 1 Reply Last reply
      0
      • L luayessa

        The parameter will be passed to the function by Reference. (the second parameter will be passed by Value)

        M Offline
        M Offline
        Mohammad Dayyan
        wrote on last edited by
        #3

        Thank you luayessa

        A 1 Reply Last reply
        0
        • M Mohammad Dayyan

          Thank you luayessa

          A Offline
          A Offline
          alex barylski
          wrote on last edited by
          #4

          Just as a side note...PHP 5+ always pass objects & arrays by reference so you don't need to use them if you are doing PHP5 development.

          I'm finding the only constant in software development is change it self.

          M 1 Reply Last reply
          0
          • A alex barylski

            Just as a side note...PHP 5+ always pass objects & arrays by reference so you don't need to use them if you are doing PHP5 development.

            I'm finding the only constant in software development is change it self.

            M Offline
            M Offline
            Mohammad Dayyan
            wrote on last edited by
            #5

            Thank you Hockey.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups