Category: Programming Language
-
Post Views: 18 1. In PHP, insert the JSON string (the Chinese has been encoded) into MySQL, and the Chinese has been encoded. as shown in Figure 1 2. Try to url decode the entire JSON string directly. Instead of converting JSON to an array, then traversing the array, url decoding each value, and finally encode the array into a…
-
Post Views: 17 1. Error: call to undefined function termwind\valueObjects\mb_strimwidth(). as shown in Figure 1 2. Uncomment in php.ini. extension=mbstring 3. No more errors. as shown in Figure 2
-
Post Views: 21 1. Reference:Upgrade PHP to version 7.2 in Windows 10 .Download VS16 x64 Thread Safe, as shown in Figure 1 2. The VC16 x64 version needs to install Visual Studio 2019 x64 Visual C++ Redistributable,Download and install Microsoft Visual C++ Redistributable for Visual Studio 2019 . The latest supported downloads for Microsoft Visual C++ redistributable packages. as shown…
-
Post Views: 11 1. When executing: composer install, prompt: enqueue/rdkafka 0.10.19 requires ext-rdkafka -> It is missing from your system. install or enable phps rdkafka extension.. as shown in Figure 1 2. Decide to enable PHP’s RDKAFKA extension. Open:https://pecl.php.net/package/rdkafka/6.0.1/windows, download 7.4 Thread Safe (ts) x64. After decompressing php_rdkafka-6.0.1-7.4-ts-vc15-x64, put php_rdkafka.dll Copy to: C:\php-7.4.27\ext\php_rdkafka.dll. Then edit php.ini, add extension=rdkafka 3. When…
-
Post Views: 19 1. The values in the JSON field are as follows. The fields to query: $.current.sections.announcement-bar.blocks.*.settings.text. The field key corresponding to * is unknown. as shown in Figure 1 2. The final sql is as follows, the query result is an array, if it does not exist, it is null. as shown in Figure 2 3. Announcement-bar needs…
-
Post Views: 15 1. Now you need to take the URI format data from a one-dimensional array. The print result of a one-dimensional array, as shown in Figure 1 2. The implementation is as follows based on the filter_var code, and the printing result is as follows, which does not meet the expectations, which exists: internal://policy_pages/29 3. Obtain the scheme…
-
Post Views: 17 1. The json field is stored in the array format, the value example:[249, 247, 250, 244, 243, 255, 246, 245, 257, 248, 259, 252, 256]. as shown in Figure 1 2. The existing code running in the queue job is implemented as follows, the generated SQL is as follows 3. Since the queue tasks can be run…
-
Post Views: 18 1. Add elements to a specific position in the index array, and now plan to add 2 elements, after price. 2. Based on array_splice — remove a part of the array and replace it with other values, the code is implemented as follows, 3. Print the running results, in line with expectations. as shown in Figure 1…