If there is such a demand, there is a date to intercept and get its year. We can use explode or strtok with php
$a = "2019-09-10 00:00:00";
echo strtok($a,"-"); // 2019
Maybe you are not familiar with strtok. Its function is to split $a to get substrings, and circular calls can achieve the same effect as explode. See demo in the official ...
Posted on Wed, 11 Sep 2019 09:06:09 -0400 by ulrikqk
Front-end automated testing (I)Front-end automated testing (II)
Through the study of the first two articles, I believe you have mastered the core usage of Jest. In this article, we use Jest in Vue.
1. Integrating Jest in Vue
We can create Vue projects directly through the @vue/cli provided by the official vue, and we need to install @vue/cli b ...
Posted on Wed, 11 Sep 2019 07:08:47 -0400 by colinexl
I. Principle of Signal Slot Mechanism
1. Brief introduction of signal slot
The signal slot is an implementation of the observer mode, which has the following characteristics: A. A signal is an event that can be observed, or at least a notification that an event has occurred. B. A slot is an observer, usually a function called when the observ ...
Posted on Wed, 11 Sep 2019 07:03:16 -0400 by alimadzi
1. Exploration process
Ps-ef: View all processes. - The e parameter shows all processes running on the system; the - f parameter expands the output.
UID: User who starts the process;
PID: ID of the process;
PPID: ID of the p ...
Posted on Wed, 11 Sep 2019 06:08:31 -0400 by webwalker00
Title: [Tangcheng Circus]
Language and environment
B. Environmental requirements
II. Functional requirements
Complete the "Tangcheng Circus Project".
1. Show all animal actors
2. View animal actors from childhood ...
Posted on Wed, 11 Sep 2019 06:01:36 -0400 by mendoz
Crawling music from web pages can be done either by using a package grabber or directly by using Google Browser's developer debugger to analyze addresses.
Next, use the developer debugging tool to analyze the data
Input a song name into the sea ...
Posted on Wed, 11 Sep 2019 05:56:38 -0400 by Heavy
Caching and Caching Mechanisms
Traditional Relational database It emphasizes the consistency of data and pays a huge price to reduce the performance of reading and writing. Although the reliability of storing and processing data in relational datab ...
Posted on Wed, 11 Sep 2019 05:53:01 -0400 by BluePhoenixNC
As we all know, the class loading mechanism or process in java is to load - > validate - > prepare - > parse - > initialize - > use - > uninstall
There are many blogs on these websites, and I believe you are familiar with them.
Posted on Wed, 11 Sep 2019 04:45:44 -0400 by Digwood
MHA Cluster Building
First, MHA introduction:
1. Introduction: MHA is a high-availability architecture for MySQL. When the database fails, it can automatically switch failures within 0-30 seconds to ensure the normal operation of database services. ...
Posted on Wed, 11 Sep 2019 04:40:33 -0400 by jackyhuphp
Last article Spring Ioc Bean Loading (3): Bean Creation for Each scope We analyzed the general process of creating beans in different scopes. In this article, we will analyze the following key methods for creating beans: create Bean ()
protected Object createBean(String beanName, R ...
Posted on Wed, 11 Sep 2019 03:57:26 -0400 by minou