Tag: String
-
Post Views: 54 1. The URL URL of a column of a CSV file is now escaped after a string. Example: 2. Because it is planned to import the CSV file into WooCommerce’s products, the URL is mapped as a picture. If it is escaped, the picture is empty after importing. After deciding to deliberate, import again. 3. Select the…
-
Post Views: 44 1. The URL URL of a column of a CSV file is now escaped after a string. Example: 2. Because it is planned to import the CSV file into WooCommerce’s products, the URL is mapped as a picture. If it is escaped, the picture is empty after importing. After deciding to deliberate, import again. 3. Select the…
-
Post Views: 17 1. Report an error in Yii2: Model Not Inserted Due to Validation Error. as shown in Figure 1 2. The code is implemented as follows 3. However, !$input->save(false) does not report an error. Problem analysis, the value of value is 444 (integer), but the rule requires that value must be a string. You need to convert the…
-
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: 13 1. Now there is a string with the following contents 2. It is expected to batch replace the default in the string to basic 3. Refer to the str::replaceArray function to replace the given value in the string using the array order 4. Since there is only one element in the array $replace, only one default is…
-
Post Views: 13 1. Error in GraphQL: variable “$sessionID” of type “string” used in position expecting type “string!”.. as shown in Figure 1 2. View request query 3. Check the GraphQL document, $sessionId: String!. is missing !. as shown in Figure 2 4. After the adjustment in the request query, no more errors are reported. as shown in Figure 3
-
Post Views: 13 1. Error in PHP 7.4: Illegal offset type in issue or empty. as shown in Figure 1 2. The code is as follows: 3. Print $setting, its value is the object. as shown in Figure 2 4. will $setting[‘settingId’]Convert to string. 5. The value of the printed and converted string is as follows 6. No more errors.
-
Post Views: 19 1. In \Vendor\Laravel\Telescope\Src\Watchers\EventWatcher.php:91, an error is reported: get_class() expects parameter 1 to be object, string give. as shown in Figure 1 2. Check \Vendor\Laravel\Telescope\SRC\Watchers\EventWatcher.php:91 3. View the EventServiceProvider 4. This looks like a bug, and I see a new commit that just solves this problem. Submit:https://github.com/laravel/telescope/commit/a69fc6f4f5fd5b0ac5a242981e162774cbb69e17. Support new listeners syntax. as shown in Figure 2 5. I…
-
Post Views: 21 1. In Yii 2.0, create a primary key column based on database migration. $this->primaryKey() is used by default. The created primary key column is int(11) by default. as shown in Figure 1 2. Some colleagues plan to create a primary key column of type VARCHAR(32). as shown in Figure 2 3. Method primaryKey() only supports passing in…