He explains what that knowledge is when he says, think about these things, namely, what you have learned from my teaching: "Learn from me; for I am gentle and lowly in heart" (Matt. 11:29); "When you received the word of God which you heard from us, you accepted it not as the word of men but as what it really is, the word of God, which is at work in you believers" (1 Thess. 2:13); and what you have seen from my example. Thus the mover to action and its object are clear.
But because a discipline is obtained through doctrine, one must first acquire it; hence he says, think about these things. T...hen he must assent to it; hence he says, what you have learned and received. Furthermore, it is acquired by hearing and sight; hence he says, what you have heard and seen. But there are two kinds of good act: one is internal, and he mentions it when he says, think about these things: "Meditate on these things" (1 Tim. 4:15); the other is external: do: "Learn to do good; cease to do evil" (Is. 1:17).
The fruit is God, hence he says, the God of peace will be with you. As if to say: If you do all these things, God will be with you: "Live in peace, and the God of love and peace will be with you" (2 Cor. 13:11).
Source: Commentary on Philippians