Answer the question
In order to leave comments, you need to log in
How to make a reference to a function variable in a string argument?
Good afternoon! A rather primitive question arose, the answer to which, unfortunately, could not be found either in the manual or in Google. The essence of the problem is as follows. There is a certain method which accepts a certain line as argument.
function test($str){
$a=5;
$b=$str;
return $b;
}
$result=$obj->test("Моя строка $a");
Answer the question
In order to leave comments, you need to log in
multithreading and only it alone will save
we break the incoming file into chunks of 2000 records, for example
, in each block we nail unnecessary lines
, we write each chunk to a new file , there
will be problems with writing to the file. so you need to use this recipe
, the road will be mastered by the walking one :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question