php

How do I use the declension API for phrases?

Hello there! There is API for declension by case of phrases in Russian Example url for a request at the bottom of the page af ... e, but if I send the phrase request freezes. And on the direct link I apply everything works and quickly! Tell me what it is.

How to make a LOGIN in laravel for two fields

According to the standard in laravel, there is one field for username when logging in to the account. Here is for example now ... database) and log in to the account was successful. If this cannot be done then suggest an alternative two-field entry option

Multidimensional array

There is an array: $cars = array( '1' => array('id'=>1, 'producer'=>'bmw', 'model'=>'x5', 'sale'=>'10', 'price ... antity'=>2) ); Thank you all for your participation, it's a pity that you can't choose several correct answers at once :)

E-mail mailing list PHP SMTP yandex

Greetings! There is a database of 140k email addresses. It is necessary to send a single email containing several links to ne ... can you advise about this? Maybe someone has experience in E-mail marketing and mailing lists? Services are welcome. Thanks.

Form for entering data into a MySQL table in PHP

The question is: what should be in the for loop for departments to be written to the drop-down list? The MySQL database has t ... pe="submit" name="submit" value="Сохранить"> </td> </tr> </table> </form>

Sending a form using the POST method

Hello. There is 1 page, it throws a variable via (submit) post to php, <form action="order.php" method="post" target=""& ... he name, and it still turns out the same. The first submit makes you immediately jump to the final result. How to avoid this?

Remove characters from the php string

Hello everyone, there is a string of this format +77771112233 How to remove +7 in the Php environment, what would you get 7771112233

Getting value from form in php

I have a question about php: how do I get the value values from input from form, if form has not been sent yet, how do I do t ... the value of input is sent? And also, if possible, how do I get the data in the same file without sending it to another one?

How to remove certain keys from an array in php

For example there is such an array: Array ( [ID] => 4 [DATE_CREATE] => 04.10.2013 20:47:52 [NAME] => BCA ... => 4 [DATE_CREATE] => 04.10.2013 20:47:52 [NAME] => BCAA [DEPTH_LEVEL] => 1 ) Thank you in advance!

Help me parse the html

Please help me parse the html. I need to enter data in an array according to this principle: $mas[0]=array(00094318,4 500,i ... t;td class="td2 text_right bold">4 500</td> <td></td> <td></td> </tr> </table>

First character of the string

Background: The database stores the full name. Task It is necessary to print "Surname And. O." Problem The string is stored ... am, 0, 2), but if the string contains English letters, it will give 2 characters. What is the best way to solve this problem?

How do I pass an array from php to javascript?

There are two questions: 1) how to get what I need from the database. 2)how to transfer what I got from the database to javas ... part of what I plan, but it's already good that one piece is ready. I'm not a web developer at all, I work with android OS.

Commenting in phpstorm

You need to comment on the code when you click Ctrl + /. Now when you press these keys, the block collapses. The following key combinations are registered in the settings: How do I set up comments? Switching the layout didn't help.

How to remove the white background in the image using PHP?

There are a lot of images on the site - I want to optimize the amount of files. I want to do the following things: How do I ... ? How do I crop a photo at the edges of the image so that there are no extra areas, so to speak, but only the working area?

The while loop in the function while() function in php

Hello everyone. I apologize for such a stupid question: how can I put a while loop in a function if the loop accesses the dat ... ion all_list(){ while($row = mysqli_fetch_assoc($all)){ echo $row['id']; } } echo all_list(); ?>

Checking the submit button click

There is an example from the book (there is also a similar question arose after watching the video tutorial) on sending files ... t;/html> And to select an existing file to send to the server, it gives: Uploading Problem: possible file upload attack

Parser mail.ru

Good day to you friends. I'm writing an email parser mail.ru my goal is this link http://my.mail.ru/my/search_people?st=city& ... them to the correct emails. I just need to go to the page and make the script go to the end of the page and switch to another

PHP design patterns

Help me understand the patterns php. There is a basic abstract class that defines the methods of the object's behavior. For e ... is currently being used. Can you tell me what is the best pattern to use, or can you give me an idea of how to implement it?

PHP output of a multidimensional associative array

I have a multidimensional associative array. How can I display it so that everything is shown on the screen? The array is so ... : [Ханин]( [Иван] => 19) [Остроух]( [Ольга] => 18) [Кульбацкая]( [Любовь] => 25)

PHP Search for an array key by a value from a part of a word

There is such a problem. An array of data consisting of URLs: array(8) { [0]=> string(39) "/update/data?drid=2759 ... into it through strpos for the desired value, but the result is zero. Is this even possible or not? I'll be glad to any help)