Programming Basics

This portal deals with the basics and basic concepts of programming. It is about topics and questions regardless of a specific programming language.

New Topics

PHP: Add previous sub-array value to next sub-array value

In each sub-array's end element, I want to add the previous sub-array's end-element. $arr = [ [1,2,4], [4,2,6], [2,1,8] ]; How can I do that with...

Open Question | 1 Answer

undefined array key php

<?php $var = array(2,5); $cnt = count($var); for ($i = 0; $i < $cnt; $i++) { echo $var[$i]."\n"; echo...

Open Question | 1 Answer

Print current and next Value of Array - Undefined Array Key Error

I have the following PHP code: $var = array(2, 5); $cnt = count($var); for ($i = 0; $i < $cnt; $i++) { echo $var[$i]."\n"; echo...

Open Question | 1 Answer

How long does it take to learn programming?

I would like to be able to program my own apps and applications, but so far, I have no idea of programming at all. What do you think, how long would...

Question | 1 Answer

Difference between Array and Record

At the moment, I am learning programming at school and I am just wondering what the difference between an array and a record might be. For me, both...

Question | 1 Answer

E-Mail: Reply Address different from Sender Address

Is it possible to write an e-mail having set another e-mail address as reply address differing from the address of the sender from which e-mail...

Question | 1 Answer

New Answers and Comments

NetLabel: You mean something like that? $arr = [ [1,2,4], [4,2,6], [2,1,8] ]; for ($i = 1; $i < count($arr); $i++) { $arr[$i-1][2] +=...

Question | PHP: Add previous sub-array value to next sub-array value

AskingBox Moderation: Why are you posting this another time when your original question is already answered?! ...

Question | undefined array key php

SmartUser: The problem with your code is as follows: You have an array with two elements (indexes 0 and 1). Then you loop through this array with $i < number...

Question | Print current and next Value of Array - Undefined Array Key Error

Guest: There are no real random generators. All what these devices do is creating numbers that appear to be random. They use complex mathematical algorithms...

Question | How can a computer create random numbers?

Progger99: It all depends on what you want to do and on what level you want to program ultimately. On the Internet there are countless tutorials, with which...

Question | How long does it take to learn programming?

Delphian: Indeed, an array as well as a record are providing the possibility to store data in it. However, there is one important difference: an array can only...

Question | Difference between Array and Record

Popular Topics

Quicksort: Sort two Columns

Question | 1 Answer

Show more

Open Questions

Participate

Everyone can participate in Askingbox. Open your topic directly in this category:

 
If you should have any questions: That’s how it’s done.