what does this mean? +=


Posted on 16th Feb 2014 07:03 pm by admin

is anyone able to explain what this code is saying?

i had it written for me awhile back and now that i wanna change it about to make it my own etc i dont really know what each part is doing... esspecially the += part lol.


im using a form which includes this:

Code: <input type="hidden" name="item_name" value="50 Awake Pills" />

and then from the form above this code is used:

Code: $total = ereg_replace( "[^A-Za-z0-9]", "", $_REQUEST['item_name'] );

$total += 0;

for ( $i = 0; $i < $total; $i++ )

No comments posted yet

Your Answer:

Login to answer
135 Like 17 Dislike
Previous forums Next forums
Other forums

PHP submit form script causing blank page
Im trying to submit a form using this script, however nothing shows up on the page, does anyone know

PHP - HTTP Digest Authentication - Understanding Code Help
Hi Everyone,

This is my first time on your website and please excuse if I am asking silly que

Click counter to ignore traffic from search bots
I have a click counter on my site that...well, counts the number of clicks a link gets on the frontp

Check Date/Time in PHP
What I need the code to check is that $reQuest is 24 hours in the past then return a time based on h

Dealing with code in db query
I am dealing with C code and I need to make sure it is encoded some how to ensure its integrity and

Grabbing Values From an Array for Posting
I have a grid array that I am using with a form that when it hits the currently named test.php it lo

PHP hyperlinks generator
Hi

I need some help to get this done using php:


1 - I have few hyperlinks say 500

Need some ideas as to how to go about sorting this array...
Here's how the array's are created..

Code: <?php
while ($x = readdir($dp)) {

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash