This: $a = new NumberFormatter('en_UK', NumberFormatter::SPELLOUT); var_dump($a->format('36')); Outputs: thirty-six If I have “thirty-six”, “thirtysix” or “thirty six”, can I turn that back into “36” with the same method somehow? Note: I’m not talking about manually coding this for English, which I already have done in the past and could do […]
Blog
I got the following script to run pre-backup stuff on my server : #!/bin/bash dump_name="nextcloud_$(date +%d-%m-%y_%H-%M-%S)_backup.sql" printf "Enabling maintenance mode... " docker exec -u www-data nextcloud_front_1 sh -c "php occ maintenance:mode --on" printf "nDumping database...n" docker exec nextcloud_database_1 sh -c 'mysqldump -u root -p$MYSQL_ROOT_PASSWORD nextcloud' | sudo tee "/data/nextcloud/database/dumps/$dump_name" > […]
The second interview with Marc Morera, an author of DriftPHP. We talk about the problem of the database persistence layer in asynchronous PHP. We discuss DBAL and ORM for ReaectPHP.
I have been working on this course for about 2 months (I do not have much free time) and I hope it will help a lot of people… This 5 hours video covers all the basic things about PHP. I think this is good starting point if you want to […]
I need a help on one of the following question : Q – EAV – Static and varchar entity type what is the similar in between this ? Both values can be identical for single sites Both values can be duplicate for multiple sites Can be add from the backend […]
I tried to update the quote table customer_note column type to text using setup script and schema patch. Column type updated after run setup:upgrade but when I run setup:upgrade the second time then column type revert to varchar as previously. This issue because Magento creates a quote table using declarative […]