python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
use array element with spaces in key inside heredoc
I'm pulling data from a MySQL database and getting the result as an associative array but the fields in the database have space so I have to access the array element with spaces in the key, now that i...
MOHAMMAD RASIM
Votes: 0
Answers: 1
Missing file specification after redirection operator
I got the following error:
| cat << EOF > config.yaml
| ~
Missing file specification after redirection operator.`
my code in power shell is following
cat << EOF > config.yam...
usman khan
Votes: 0
Answers: 1
What is the return type of a method that returns Heredoc?
I have some PHP code that looks like this:
class MyClass
{
public static function classPhpdoc($paramA)
{
return <<<PHP
/** @template-extends \\$baseClass */
PHP;
}
}
It'...
Radu Murzea
Votes: 0
Answers: 1
pass commands from file to heredoc
This is my first post here. I was wondering if anybody could help me with my script.
I am trying to use a file with commands instead of commands in the scrip.
Here is the example of script i have now
...
Robbo_3542
Votes: 0
Answers: 1