The present article deals with the existence of weak solutions to a class of
p
(
z
)
p\left(z)
-Kirchhoff-type problems. To address these problems, we employ a variational approach in conjunction with the theory of variable exponent Sobolev spaces, while imposing suitable assumptions on the source term. Furthermore, we utilize the theory of Young measures.