THIS IS AMBIGUOUS; USE SPECIFIC-LANGUAGE TAGS WHENEVER APPLICABLE. A variable is a named data storage location in memory. Using variables, a computer program can store numbers, text, binary data, or a combination of any of these data types. They can be passed around in the program.

learn more…| top users | synonyms (2)

-2
votes
0answers
17 views

Value not returned [duplicate]

In the console log into onload function i see the right value, while the console log out the onload function print null.function getPrice() {var service=eval(document.getElementById('service')...
-1
votes
0answers
10 views

Ansible parse value from stdsout

Im runnning a ansible playbook with some commands to a networkdevice (juniper) to check status.The output look like this:"Monitor Failure codes:", " CS Cold Sync monitoring ...
-2
votes
0answers
31 views

Parse error: syntax error, unexpected '$gdca654ed' (T_VARIABLE) [duplicate]

I'm looking for a solution for the following problem :Parse error: syntax error, unexpected '$gdca654ed' (T_VARIABLE) in ......I've had some trouble with my website being hacked etc, reuploaded ...
0
votes
1answer
21 views

how to pass value to var upon click

I am trying to pass/add the value of variables ruby, diamond, emerald, and bloodstone to the variable totalScore upon each click. I've added event listeners for each of the buttons but nothing happens ...
-3
votes
1answer
64 views

Why does this code produce 'unreachable statement' error?

The variable is already declared in the method, and I want to use the variable again, in the same method for an if else statement.This is my method and variable declared.I get an 'unreachable ...
0
votes
1answer
25 views

What's the best way of saving variables status before closing an app

For example:I have a game of clicking in objects, so there are variables likeopenDoor=true;openChest=false;When user close window and restart the game I have to return him/her with his/her ...
0
votes
2answers
38 views

How to edit the script so variable values will be contained within apostrophes without the need that the user will add apostrophes?

I wrote the following bash script:#!/bin/bashTIMEOUT="5"SESSIONS="8"function usage {echo "Usage: $(basename $0) -l servers.list -c COMMAND"echo ""echo "Options:"echo " -l ...
-5
votes
2answers
39 views

How to use variables from a function in a different function

This is my experimenting code:def settingValues():hi="Hello"name="Jake"isTrue=Truedef callingValues():print(hi, name, isTrue)settingValues()callingValues()Obviously this ...
0
votes
0answers
22 views

I need to Execute a command-line command inside my PowrShell script, but also to use a store variable from Powershell Inside that command

I'm kind of new to Powershell, but now I need to build a script which takes a backup and encrypts it using Veracrypt.Fortunately there is a command-line syntax to do that, but for my script I'll use ...
-5
votes
1answer
55 views

make variable from string php

I have the code snippet belowforeach ($response as $sms) {$receiver="(".$sms['from'].",\"".$sms['body']."\",".$sms['timestamp'].")"; $res .=$receiver.",";...
-4
votes
1answer
32 views

how to transform a string in a variable name ? python [duplicate]

how can I transform a string in a variable name ?I have multiple variable value1, value2, value3 and value1=5when i use x=1 print(str("value" + str(x)))it return "value1" and not "5" edit:...
-1
votes
2answers
48 views

How does jQuery selection work with a variable that hasn't been declared?

Today I found code online like this.Here's a simplified version of what I don't understand.<div id="foo"></div>$(foo) //gets the correct elementHow does foo not throw an error and ...
1
vote
3answers
33 views

printing output of command history 1 from shell script

Here's my problem, from console if I type the below,var=`history 1`echo $varI get the desired output. But when I do the same inside a shell script, it is not showing any output. Also, for other ...
0
votes
1answer
19 views

Using php, can I “Import” a text of an textfile which contains variables?

I want to generate a form out of a textfile so that I just need to update mentioned text file instead of the php site. Because I need to know how many entries this form has, I want to use variables. (...
1
vote
2answers
24 views

How use a php variable declared in the parent file in an included file

I'm trying to pass the php variable $shareURL="someURL"; from the parent page of test.php into the included file of commentTest.php. Is this possible? If yes, please help.Parent File=Test.php&...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,