Skip to main content
3 votes
1 answer
147 views

Let's say I have an array_1 containing a string which is a name of another array_2. And now I would like to convert the array index into a variable containing the array_2. I have the following working ...
Jimski's user avatar
  • 1,040
0 votes
2 answers
96 views

I have a list of about 100 articles, and within each article is a list of clauses. The clauses are a list of varying levels deep. $clauses = array( [ 'Fields' => ['Clause' => 'clause 1', '...
FigureOfCode's user avatar
1 vote
2 answers
193 views

I need to use a variable variable for defining a lambda function inside of the callback of array_map(). I get an "Undefined variable" WARNING for the variable that I am referencing. ...
plsssineedheeeelp's user avatar
1 vote
2 answers
4k views

I want to open this post as I can't find anything on the official documentation from streamlit or any resources that mentioned how to do this. After some trial and error I have figured out a way, and ...
Subaru Spirit's user avatar
0 votes
0 answers
64 views

I've got a database full of text fields, all of which contain WITHIN them the characters $myvariable. When I retrieve such text field and save it as a php variable, say as $myDBtext, I can definitely ...
Daniel F's user avatar
0 votes
2 answers
113 views

I have a class named MyClass. I want to generate the attributes k_10sec to k_1d of the instance in batches when generating instances of the class. How do I modify the code? bars = ['10sec', '1min', '...
jaried's user avatar
  • 672
0 votes
2 answers
321 views

I am trying to override some variables in my PHP file using variable variables, but I am getting unexpected results, where the original value is never overwritten, but where the new variable-variable ...
Brandon McConnell's user avatar
0 votes
1 answer
1k views

I am trying to iterate over all the rows in an Excel worksheet and set a variable based on the cell that is currently being iterated over. Below is the code that I am using: import openpyxl from ...
ak40837's user avatar
  • 13
0 votes
3 answers
3k views

I`m trying to build an function that load script on-demand. That is my current code: function loadScript(src, name = null) { var dfd = jQuery.Deferred(); if (name === null) { name = ...
Bruno Natali's user avatar
1 vote
3 answers
391 views

I've been playing around and seeing if I can set up a more dynamic method in PHP. usort( $dataset, function($a, $b){ return strcasecmp($a[$this->parameters], $b[$this->parameters]...
NulisDefo's user avatar
  • 335
2 votes
1 answer
707 views

Today I met such a terrible situation. It seems this bug is related to PHP. I'm trying to access to $_SERVER or another super global variables but from string name. This version of implementation is ...
Aaron Yordanyan's user avatar
2 votes
1 answer
116 views

I want to create a session variable but the session variable name I want to be dynamic. So what I need is the proper syntax for a variable name that is a $_SESSION variable. I have tried the code ...
Dave Lovely's user avatar
1 vote
1 answer
92 views

I've been hitting my head on this problem for some time now. I am working on a piece of software that creates a tree from a MySQL result checking for changes between each row to decide where in the ...
Francesco's user avatar
  • 519
0 votes
1 answer
241 views

view.py variable = 'amount' amount = 200 print(variable) #actual: 'amount' expected: 200 In such case, is it possible to use Variable Variable like PHP? in php, I could do $variable = 'amount'; $...
Wils's user avatar
  • 1,231
0 votes
1 answer
44 views

I'm creating code that creates new user identifications for users, and then adds all their account details to a dictionary and then adds this dictionary to another dictionary of all the accounts. My ...
always-confused's user avatar

15 30 50 per page
1
2 3 4 5
13